4 Examples To Grant Normal User Root Privileges In Linux

“root” super user is the king of the users in Linux/Unix. Having root access grant full and unlimited access to the Linux box. I will show how to allow root access to a user in a Linux system. Typically root level access used in system administration. It’s always a pain to give others (users) rootContinue reading “4 Examples To Grant Normal User Root Privileges In Linux”

what is difference between /etc/shadow and /etc/passwd

passwd is the file where the user information (like username, user ID, group ID, location of home directory, login shell, …) is stored when a new user is created. shadow is the file where important information (like an encrypted form of the password of a user, the day the password expires, whether or not theContinue reading “what is difference between /etc/shadow and /etc/passwd”

User Types (sudo, su, id, w, who and id commands)

There are three basic types of Linux user accounts: administrative (root), regular, and service. The Linux administrative root account is automatically created when you install Linux, and it has administrative privileges for all services on Linux Operating System. The root account is also known as super user Regular users have the necessary privileges to performContinue reading “User Types (sudo, su, id, w, who and id commands)”

wc and nl commands in Linux (word count)

6 WC Command Examples to Count Number of Lines, Words, Characters in Linux The wc (word count) command in Unix/Linux operating systems is used to find out number of newline count,word count, byte and characters count in a files specified by the file arguments. The syntax of wc command as shown below. # wc [options]Continue reading “wc and nl commands in Linux (word count)”

find command in Linux

Ten ‘Find’ Command Examples for Beginners find command is used for locate files in a directory hierarchy on Linux/Unix systems. You can search for files according to name, owner, group, type, permissions, date and other criteria. The search is recursive in that it will search all sub directories too. If you are a beginner, the following examples will makeContinue reading “find command in Linux”

Linux head Command Options with Examples – Display First Part of Files

In Linux system, we have some alternatives about how to display a content of text files. We can use cat command, more command or less command. Another command to do it is head command. What is head command Head is command that will print only the first part of a text file. So when youContinue reading “Linux head Command Options with Examples – Display First Part of Files”