Os - Viva
Os - Viva
Os - Viva
1. pwd Command
The pwd command is used to display the location of the current working
directory.
2. mkdir Command
The mkdir command is used to create a new directory under any directory.
3. rmdir Command
4. ls Command
5. cd Command
6. touch Command
The touch command is used to create empty files. We can create multiple empty
files by executing it once.
7. cat Command
The cat command is a multi-purpose utility in the Linux system. It can be used to
create a file, display content of the file, copy the content of one file to another
file, and more.
8. rm Command
9. cp Command
10. mv Command
The rename command is used to rename files. It is useful for renaming a large
group of files.
The head command is used to display the content of a file. It displays the first 10
lines of a file.
The tail command is similar to the head command. The difference between both
commands is that it displays the last ten lines of the file content. It is useful for
reading the error message.
The tac command is the reverse of cat command, as its name specified. It
displays the file content in reverse order (from the last line).
The more command is quite similar to the cat command, as it is used to display
the file content in the same way that the cat command does. The only difference
between both commands is that, in case of larger files, the more command
displays screenful output at a time.
The less command is similar to the more command. It also includes some extra
features such as 'adjustment in width and height of the terminal.' Comparatively,
the more command cuts the output in the width of the terminal.
17. su Command
18. id Command
The id command is used to display the user ID (UID) and group ID (GID).
19. useradd Command
The passwd command is used to create and change the password for a user.
The cat command is also used as a filter. To filter a file, it is used inside pipes.
The cut command is used to select a specific column of a file. The '-d' option is
used as a delimiter, and it can be a space (' '), a slash (/), a hyphen (-), or
anything else. And, the '-f' option is used to specify a column number.
The grep is the most powerful and used filter in a Linux system. The 'grep'
stands for "global regular expression print." It is useful for searching the
content from a file. Generally, it is used with the pipe.
The sed command is also known as stream editor. It is used to edit files using a
regular expression. It does not permanently edit files; instead, the edited content
remains only on display. It does not affect the actual file.
28. tr Command
The tr command is used to translate the file content like from lower case to upper
case.
The uniq command is used to form a sorted list in which every word will occur
only once.
30. wc Command
The wc command is used to count the lines, words, and characters in a file.
31. od Command
The gzip command is used to truncate the file size. It is a compressing tool. It
replaces the original file by the compressed file having '.gz' extension.
The find command is used to find a particular file within a directory. It also
supports various options to find a file such as byname, by type, by date, and
more.
The date command is used to display date, time, time zone, and more.
The cal command is used to display the current month's calendar with the current
date highlighted.
The sleep command is used to hold the terminal by the specified amount of time.
By default, it takes time in seconds.
42. df Command
The df command is used to display the disk space used in the file system. It
displays the output as in the number of used blocks, available blocks, and the
mounted directory.
The mount command is used to connect an external device file system to the
system's file system.
Linux exit command is used to exit from the current shell. It takes a parameter as
a number and exits the shell with a return of status number.
46. ip Command
Linux ssh command is used to create a remote connection through the ssh
protocol.
The mail command is used to send emails from the command line.
The ping command is used to check the connectivity between two nodes, that is
whether the server is connected. It is a short form of "Packet Internet Groper."
The host command is used to display the IP address for a given domain name
and vice versa. It performs the DNS lookups for the DNS Query.