7. Usage of common linux commands 6: linux X window systemhttp: // www.bkjia.com/ OS /201303/197061.html system information uname-m Display Server Processor Architecture (2) uname-r shows the kernel version in use. uname-a lists all things shutdown-h now shut down the system (1) file and directory cd-back to the last directory ls-l show file and directory details ls-a show hidden file mkdir dir1 dir2 create two directories at the same time mkdir-p/tmp/dir1 /dir2 create a directory tree rmdir-r dir1 recursively delete all contents of a directory called 'dir1' cp-r source destination recursively copy all contents of source to destinationless filename with spaces and B Representing downward and flip up head- N 20 filename select the first 20 rows of the file ln-s file1 lnk1 create a soft link to the file or directory ln file1 lnk1 create a physical link to the file or directory find/etc-name bing finds the file named bing in/etc. find/etc-perm mode and find the file umask 002 with the file Permission = mode. This specifies the default permission of the current user to create a file. chmod 777 file suid sgid sbit. If you change the File Permission to-rwsr-xr-x, chmod 4755 filechown jessie should be used: users file1.txt: Set the owner of the file file1.txt as the user of the users Group, jessie chattr [+-=] [ai] filename + -- = hidden attribute of the file. mount device name mount point tar [-j | z] [c | x] v-f filename j 2.16.bz2 z 2.16.gz c package x unzipping v indicates that the file name being processed is displayed as the file to be processed during compression/decompression. vimdd deletes a row yy copy P paste ctrl + f ctrl + B flip x delete a character u ctrl + r undo ZZ save and Exit o insert bashlogin shell in the next row of the cursor read/etc/profile and ~ /. Bash_profile or ~ /. Profilenologinshell read-only ~ /. Bash_profile or ~ /. The profilesource configuration file name can read the content of the configuration file into the current bash help display bash built-in command env view environment variable data redirection find/home-name. bashrc> list 2> & 1 pipeline command cut grep 'string' program and service management ps-e show all processes ps-l output ps aux in detail to list current Memory all processes top-p specify a pid to monitor the keys P cpu M memory N pid q during top execution to killall-signal syslogd started by syslogd command