This is the Part-3 of our ongoing series of Linux commands. We have covered Linux commands Part-1 & Part-2 in our earlier tutorials.
Let’s get started.
1. vi command with example
vi (Visual) is the default text editor in Unix and Unix like Operating System. Using vi editor, you can create a file and edit a existing file.
In the following example, we are creating a file name teclues using vi editor and :wq! (write/save and quit).
There are 3 modes of operations in vi.
2. watch command with example
watch command runs repeatedly. By default, watch command run every 2 seconds and command will run until you interrupt.
3. YUM or DNF command example
YUM (Yellow Update Manager) is a package manager for RPM-based Linux distributions. DNF is the successor of YUM. DNF (Dandified YUM) is the next generation version of YUM. DNF is the default package manager tool for Fedora 18 and later versions, Red Hat Linux 8, CentOS 8, OEL 8
Syntax:
6. top command with examples
7. ln command with examples
9. rpm command with example
RPM (RedHat Package Manager) is used for installing, querying, updating, removing packages in RPM-based Linux Operating System.
Syntax to install the package:
rpm -ivh {rpm-file}
$ rpm -ivh telnet-0.17-64.el7.x86_64.rpm
10. gzip command with example
gzip command is to compress files and folder and add a “.gz” suffix in a file.
Syntax:
gzip [Options] [filenames]
In the following example, we are compressing two test.img & test.txt
$ gzip -k test.img test.txt
11. gunzip command with example
Decompressing the compress file which was compressed in point no. 10 as above this will replace the compressed file with the original file name by default. However, you need to confirm before replacing.
Syntax:
gunzip [Option] [archive name/file name]
In the following example, we are decompressing two test.img.gz & test.txt.gz files.
$ gunzip test.img.gz test.txt.gz
12. chage command with example
13. tee command with example
tee command to read from standard input and writes to both standard output and a file at the same time.
In this post, we have covered 15 Linux command that Every Linux System Administrator Should Know With Examples. We will be covering another series of commands in the next articles. Stay tuned !!! Also share it with others and also like our facebook official page.