Linux Command operator (1)
1 ctrl + alt + t shortcut to open the Ubuntu Terminal
2 alt + f4 close a terminal
3 ls view all files in the current directory
16 ls-a ---- show all files, including hidden files. a indicates all. The hidden file starts.
17 ls ----- show only hidden files
4 # super Administrator
5 S normal user
6 sudo su ---- convert normal users to super administrator users exit ---- exit super administrator Mode
7 clear ---- clear the screen
8 ctl + l (letter l) ----- shortcut to clear the screen
9 pwd ----- view the current directory
10/----- It is called the root directory
11 cd ---- enter the desired directory
13 cd/---- enter the root directory
14 cd [enter] ---- enter the USER command
15 cd .. ---- return the previous path,
12 tab-when you cannot remember a command, you can use the two-click tab key to list all commands with the word as the header.
18 mkdir abc ---- create a directory named abc
19 rmdir abc ---- Delete the abc directory. The Hidden directory cannot be deleted.
20 mkdir. abc ---- create a hidden directory
21 rm-r. abc ---- Delete and hide Directories
22. rm file name ---- delete the file
23 rm *. o ---- delete all files whose names are. o at the end
24 crt + alt + (shift) + F1 ~ F7 ---- switch to the console
25 shift + pageup (down) ---- go up and down through the command line
26 ps aux ---- view Processes
27 kill-SIGKILL 2865 (process number) ---- kill a process
28 kill-9 process number ---- same as 27, killing a process
29 ctrl + c ---- end the foreground process in the Current shell
30 find./(current directory or other path)-name "Firefox" (File name) ---- search
31 find/(starting from the root directory)-name "file name *. *" ---- search
That is, find path-name "file name"
32. New Original file name ---- change the original file name to a new file name
33 grep "content"/(PATH)-R (recursion) ---- filter the file content and find the file to which the content belongs
For example: grep "123456789"./*-R ----- find the file containing "123456789" from all the files in the current directory
34 tar zcvf file name .tar.gz file name ----zip the current directory file into the format of file name .tar.gz
35 tar zxvf file name .tar.gz file name ----decompress the compressed package named .tar.gz in the current directory as the file name
36 tar zxvf file name .tar.gz-C specify a directory-extract the compressed file from the current directory to the specified path
37 tar cvf file name .tar file name -----pack the current directory file as the file name .tar format
38 tar xvf file name .tar.gz file name ----unpack the current directory file name .tar as the file name
39 tar jcvf file name .tar.bz2 file name ----zip the previous file into file name .tar.bz2
40 tar jxvf file name .tar.bz2-C folder ---the file named .tar.bz2 will be compressed as a file named .tar.bz2.
41 man command character ---- explains how to use the rule using the command character. It can also be a function in the C program.
1 ctrl + alt + t shortcut key open Ubuntu Terminal 2 alt + f4 close a terminal 3 ls view all files in the current directory 4 # super administrator 5 S normal user 6 sudo su ---- normal user switch to super administrator user exit ---- exit super administrator mode 7 clear ---- clear screen 8 ctl + l (letter l) ----- shortcut key to clear screen 9 pwd ----- view the current directory 10/----- It is called the root directory 11 cd ---- enter the desired directory 12 tab ---- when you cannot remember a command, double-click the tab key to list all the commands starting with this word 13 cd/---- go to the root directory 14 cd [enter] ---- go to the USER command 15 cd .. ---- return to the previous path, 16 ls-a ---- show all files, including hidden files. a indicates all. start with 17 ls ----- only show hidden file 18 mkdir abc ---- create a directory named abc19 Rmdir abc ---- Delete the abc directory. The Hidden directory 20 mkdir cannot be deleted. abc ---- create a hidden directory 21 rm-r. abc ---- Delete directory and hide directory 22 rm file name ---- delete file 23 rm *. o ---- delete the names of all objects. o files 24 crt + alt + (shift) + F1 ~ F7 ---- switch the console 25 shift + pageup (down) ---- go up and down on the command line and turn up 26 ps aux ---- view process 27 kill-SIGKILL 2865 (process number) ---- killing a process 28 kill-9 process no. ---- like 27, killing a process 29 ctrl + c ---- killing the frontend process 30 find in the current shell. /(current directory or other path)-name "Firefox" (File name) ---- search for 31 find/(starting from the root directory)-name "file name *. * "---- find path-name" file name "32 mv original file name new file name ---- change original file name to new file name 33 grep" content "/(PATH)-R (recursion) ---- filter the file content and find the file to which the content belongs, for example, grep "123456789 ". /*-R ----- find the 34 tar zcvf file name .tar.gz file containing "123456789" from all the files in the current directory. Unzip the compressed package in the format of 35 tar zxvf file name .tar.gz extension to the file name 36 tar zxvf file Name .tar.gz-C specify a directory-extract the compressed file from the current directory to the file in the format of 37 tar cvf file name .tar extension 38 tar xvf file name .tar.gz extension to 39 tar jcvf file name .tar.bz2 extension. 40 tar jxvf file name .tar.bz2-C folder ---the 41 man command character of the file named .tar.bz2 is compressed into a file named .tar.bz2-instructions on how to use the command character, it can also be a function in the C program.