Linux Commands2 (1)
Linux Commands2 (1)
2) System Libraries
3) System Tools
With the help of commands, you can access your files, edit and
manipulate data in your directories or files, change the location of
files, or anything.
4) Development Tools
These end tools make a system unique for a user. End tools are
not required for the operating system but are necessary for a user.
This is one of the most asked questions about Linux systems. Why
do we use a different and bit complex operating system, if we
have a simple operating system like Windows? So there are
various features of Linux systems that make it completely
different and one of the most used operating systems. Linux may
be a perfect operating system if you want to get rid of viruses,
malware, slowdowns, crashes, costly repairs, and many more.
Further, it provides various advantages over other operating
systems, and we don't have to pay for it. Let's have a look at some
of its special features that will attract you to switch your operating
system.
Free & Open Source Operating System
And we can dive in Linux without paying any cost. We can install
it on Multiple machines without paying any cost.
It is secure
Linux supports various security options that will save you from
viruses, malware, slowdowns, crashes. Further, it will keep your
data protected. Its security feature is the main reason that it is the
most favorable option for developers. It is not completely safe,
but it is less vulnerable than others. Each application needs to
authorize by the admin user. The virus cannot be executed until
the administrator provides the access password. Linux systems do
not require any antivirus program.
Developers find that the Linux terminal is much better than the
Windows command line, So, they prefer terminal over the
Windows command line. The package manager on Linux system
helps programmers to understand how things are done. Bash
scripting is also a functional feature for the programmers. Also,
the SSH support helps to manage the servers quickly.
Linux Distributions
For the beginners, Ubuntu and Linux Mint are considered useful
and, for the proficient developer, Debian and Fedora would be a
good choice. To Get a list of distributions, visit Linux
Distributions.
Advantages of Linux
1. pen Source
The Linux security feature is the main reason that it is the most
favorable option for developers. It is not completely safe, but it is
less vulnerable than others. Each application needs to authorize
by the admin user. The virus is not executed until the
administrator provides the access password. Linux systems do not
require any antivirus program.
3. Free
4. Lightweight
5. Stability
Linux is more stable than other operating systems. Linux does not
require to reboot the system to maintain performance levels. It
rarely hangs up or slow down. It has big up-times.
6. Performance
7. Flexibility
8. Software Updates
9. Distributions/ Distros
15. Networking
16. Compatibility
17. Installation
19. Multitasking
1. pwd Command
Syntax:
1. pwd
Output:
2. mkdir Command
3. rmdir Command
Syntax:
Output:
4. ls Command
Syntax:
1. ls
Output:
5. cd Command
Syntax:
1. cd <directory name>
Output:
6. touch Command
Syntax:
Output:
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.
Syntax:
Press "CTRL+ D" keys to save the file. To display the content of
the file, execute it as follows:
Output:
8. rm Command
Syntax:
rm <file name>
Output:
9. cp Command
Syntax:
Output:
10. mv Command
Syntax:
Output:
Syntax:
For example, to convert all the text files into pdf files, execute the
below command:
Output:
Syntax:
Syntax:
Output:
Syntax:
Output:
In more command, the following keys are used to scroll the page:
Syntax:
Output:
Syntax:
Output:
17. su Command
Syntax:
1. su <user name>
Output:
18. id Command
Syntax:
1. id
Output:
Syntax:
1. useradd username
Output:
20. passwd Command
Syntax:
1. passwd <username>
Output:
Syntax:
Output:
Syntax:
Output:
Syntax:
Output:
24. grep Command
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.
Syntax:
Output:
Syntax:
Output:
Syntax:
The tee command is quite similar to the cat command. The only
difference between both filters is that it puts standard input on
standard output and also write them into a file.
Syntax:
Output:
28. tr Command
Output:
Syntax:
Output:
30. wc Command
1. wc <file name>
Output:
31. od Command
Syntax:
Output:
32. sort Command
Syntax:
Output:
33. gzip Command
Syntax:
Output:
Syntax:
Output:
Linux Utility Commands
Syntax:
Output:
36. locate Command
Syntax:
Output:
37. date Command
The date command is used to display date, time, time zone, and
more.
Syntax:
1. date
Output:
Syntax:
1. cal<
Output:
39. sleep Command
Syntax:
1. sleep <time>
Output:
Syntax:
1. time
Output:
41. zcat Command
Syntax:
Output:
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.
Syntax:
1. df
Output:
Syntax:
Output:
44. exit Command
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.
Syntax:
1. exit
Output:
Syntax:
1. clear
Output:
After pressing the ENTER key, it will clear the terminal screen.
46. ip Command
Syntax:
1. ip a or ip addr
Output:
47. ssh Command
Syntax:
1. ssh user_name@host(IP/Domain_name)</p>
Syntax:
Output:
49. ping Command
Syntax:
1. ping <destination>
Output:
Output: