This article sorted out the most commonly used Linux commands to facilitate the quick search of common commands
Command |
Description |
Ls |
Listing directories |
Ls-al |
Use formatting to list hidden files |
CD dir |
Enter Directory dir |
Cd |
Enter Home directory |
Pwd |
Show current directory |
mkdir dir |
Create Directory Dir |
RM file |
Delete file |
Rm-r dir |
Delete directory Dir |
Rm-f file |
Force Delete File |
Rm-rf dir |
Force Delete Directory Dir |
CP file1 File2 |
Copy File1 to File2 |
Cp-r Dir1 Dir2 |
Copy the Dir1 to the DIR2; Create the Dir2 if it does not exist |
MV File1 File2 |
Rename or move the file1 to the file2; If File2 is an existing directory, move file1 to the directory File2 |
Ln-s File Link |
Create a symbol connection link for file |
Touch file |
Create a file with the name file |
Cat > File |
Add standard input to file |
More file |
View the contents of the file |
Tail-f file |
View the contents of file from the first 10 lines |
Mans command |
Show Instructions Manual for command |
Ps |
Displays the current active process |
Top |
Show all running processes |
Kill PID |
Kill process ID PID |
Killall proc |
Kill all the processes named Proc. |
chmod octal file |
Change permissions for file |
grep pattern Files |
Search the files for matching pattern content |
Df |
Show disk occupancy |
Du |
Show Directory space occupancy |
Tar xzf file.tar.gz |
Extract the tar file using Gzip |
Tar xjf file.tar.bz2 |
Extract the tar file using BZIP2 |
Ping Host |
Ping the host and output the result |
wget file |
Download file |
Original link: http://tinyxiong.com/linux_common_cmds/
about the author: Tiny bear: Simple and simple block chain Bo main