“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”
Category Archives: Linux (Ubuntu/CentOS)
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)”
cut command in Linux
10 Practical Linux Cut Command Examples to Select File Columns Linux command cut is used for text processing. You can use this command to extract portion of text from a file by selecting columns. This tutorial provides few practical examples of cut command that you can use in your day to day command line activities.Continue reading “cut command in Linux”
sort command in Linux
14 Useful Examples of Linux ‘sort’ Command Sort is a Linux program used for printing lines of input text files and concatenation of all files in sorted order. Sort command takes blank space as field separator and entire Input file as sort key. It is important to notice that sort command don’t actually sort theContinue reading “sort command in Linux”
grep command in Linux
12 Practical Examples of Linux grep Command Have you ever been confronted with the task of looking for a particular string or pattern in a file, yet have no idea where to start looking? Well then, here is grep to the rescue! grep is a powerful file pattern searcher that comes equipped on everyContinue reading “grep command in Linux”
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”
Tail command in Linux
10+ useful tail command’s switches with example – Unix/Linux The tail command By default, the tail command prints the last 10 lines from the file which is given followed by the tail command. In the case of more than one file with tail command displays separate output with a header identifying the file name. TailContinue reading “Tail 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”