1.ls–list
LS enumerates the contents (files or folders) of the current working directory, just as you open a folder in the GUI to see what's inside.
2.mkdir–make Directory
mkdir for creating a new directory
3.pwd–print Working Directory
PWD Displays the current working directory
4.cd–change Directory
For a meeting that is currently running in the terminal, the CD sets the given folder (or directory) to the current working directory.
5.rmdir–remove Directory
RmDir deletes the given directory.
6.rm–remove
RM Deletes a given file or folder and can use Rm-r to recursively delete a folder
7.cp–copy
CP command to copy a file or folder, you can use the CP-R option to recursively copy the folder.
8.mv–move
The MV command moves a file or folder, and if the file or folder exists in the current working directory, you can also rename the file or folder.
9.cat–concatenate and print files
Cat is used to view the contents of a file on a standard output (monitor or screen)
10.tail–print tail (from the last) >
Tail default Displays the last 10 rows of a given file on standard output, you can use Tail-n N to specify that the last n rows of the file are displayed on standard output.
11.less–print Less
Less prints the contents of a file by page or by window. It is useful and efficient to view large files that contain large amounts of text data. You can use Ctrl+f to page forward and ctrl+b to page back.
12.grep
grep "" Searches for the specified string in the given file. Grep-i "" Ignores the case of the string while searching, while Grep-r "" recursively searches the file in the current working directory for the specified string.
13.Find
This command searches for a file that matches the condition at a given location. You can use Find-name's-name option for case-sensitive searches, find-iname for case-insensitive searches.
Find <folder-to-search>-iname <file-name>
14.tar
The tar command can create, view, and extract tar compressed files. TAR-CVF is to create the corresponding compressed file, TAR-TVF to view the corresponding compressed file, TAR-XVF to extract the corresponding compressed file.
15.gzip
The gzip command creates and extracts gzip compressed files, and you can use gzip-d to extract the compressed files.
16.unzip
Unzip unzip the gzip document. You can use the Unzip-l command to view the contents of a file before extracting it.
17.help
--HELP lists all available commands at the terminal, and you can use the-H or-help option of any command to view the specific usage of the command.
18.whatis–what is the This command
Whatis will use a single line to describe the given command.
19.man–manual
Man displays a manual page for the given command.
20.exit
Exit is used to end the current terminal session.
21.ping
Ping ping A remote host (server) by sending a packet, commonly used to detect network connections and server status.
22.who–who is logged in
Who can list the currently logged in user name.
23.su–switch User
Su is used to switch between different users. Super users can switch to other users even if they are not using a password.
24.uname
Uname will display important information about the system, such as kernel name, hostname, kernel version, processor type, etc., and use uname-a to view all information.
25.free–free Memory
Free displays information such as the system's idle memory, memory consumption, available swap memory, FREE-M converts the units in the result to kilobytes, and free–g to GB.
26.df–disk Space Free
DF View the usage of the disk in the file system – the hard disk used and the available storage space, and other storage devices. You can use Df-h to display the results in a human-readable way.
27.ps–processes
The operation process of PS display system.
28.top–top processes
The top command displays a high-volume process by default on CPU usage, and you can use Top-u to view the CPU utilization ranking of a user.
29.shutdown
Shutdown is used to shut down the computer, and shutdown-r is used to restart the computer.
Linux Common commands