23 Basic/Easy Linux Commands to Get Started Learning With.
In all the commands below, there are some commands that are not installed by default; you will have to install those.
1. Cd
The ‘cd’ command is used to change the current working directory.
Syntax: <cd directory name>
Example: cd documents
2. Rename
The ‘rename’ command is used for renaming a file.
Syntax: <rename 's/oldform/newform/' filename>
Example: rename 's/file/newfile/' file.txt
3. Dir
The ‘dir’ command lists all the contents of a directory.
Syntax: <dir> or <dir /directory>
Example: dir or dir /home
4. Tree
The ‘tree’ command displays a tree-like structure of directory or depth-intended listings of a file.
Syntax: <tree>
Example: tree
5. Chdir
The ‘chdir’ command in Linux changes the current working directory to the directory that you enter.
Syntax: <chdir /directory>
Example: chdir /home
6. Mkdir
The ‘mkdir’ command in Linux means make directory. It can be used to create a new directory.
Syntax: <mkdir directoryname>
Example: mkdir audiofolder
7. Rmdir
The ‘rmdir’ command is used to remove an empty directory.
Syntax: <rmdir directoryname>
Example: rmdir folder1
8. Rm
The ‘rm’ command is used to remove directories, subdirectories, and files.
Syntax: <rm directory or filename>
Example: rm folder1
9. Cp
The ‘cp’ command in Linux is used to copy files or directories.
Syntax: <cp filename destination>
Example: cp file1 directory1
10. Date
The ‘date’ Linux command is used to display the date.
Syntax: <date>
Example: date
11. Uname
The ‘uname’ command in Linux is used to display system info or all available system info.
Syntax: <uname> or <uname -a>
Example: uname or uname -a
12. Ps
The ‘ps’ command in Linux is used to show process status or all processes status.
Syntax: <ps> or <ps -a>
Example: ps or ps -a
13. Echo
The ‘echo’ command in Linux is used to display lines of text, strings that are passed as arguments.
Syntax: <echo linesoftext>
Example: echo by echo this line will be displayed
14. At
The ‘at’ Linux command is used for scheduling a job for a later time.
Syntax: <echo hello | at time>
Example: echo hello | at 09:00
15. Clear
The ‘clear’ Linux command clears all the terminal.
Syntax: <clear>
Example: clear
16. Exit
The ‘exit’ command in Linux is used to close the terminal.
Syntax: <exit>
Example: exit
17. Shutdown
The ‘shutdown’ command in Linux is used to shut down immediately.
Syntax: <sudo shutdown now>
Example: sudo shutdown now
18. Ifconfig
The ‘ifconfig’ Linux command is used to display all network interfaces info on the system.
Syntax: <ifconfig>
Example: ifconfig
19. Netstat
The network statistics ‘netstat’ command in Linux is used to display network-related information and diagnose different networking issues.
Syntax: <netstat option>
Example: netstat -a
20. Nslookup
The command ‘nslookup’ is used for getting information from the DNS server.
Syntax: <nslookup domain>
Example: nslookup google.com
21. Whois
The ‘whois’ Linux command is used to show a lot of information about a domain and who owns it.
Syntax: <whois domain>
Example: whois google.com
22. Route
The ‘route’ command in Linux is used to view the routing table.
Syntax: <route option>
Example: route -n
23. Ping
The ‘ping’ Linux command is used to check a server’s internet connection to see if your system is connected to the internet.
Syntax: <ping google.com>
Example: ping google.com
Comments
Post a Comment