The purpose of the system creation is to manipulate the file
1, Linux: See everything is a file
2. PWD View current path
3, "/" on behalf of the root directory, CD (chage directory) Replacement directory
4, how to view the root directory of files and disk? LS View the current directory of files or directories, Ls-l: View details, the size of the details in bytes to represent the size, ls-lh:h (human) represents the user-friendly display, Ls-lha: Hidden file humanized display
5, how to determine whether it is a file or directory? "D ..." begins with a directory,
6. Ls-a: Show hidden files
7. Vim. Test to create a hidden file
8. Vim file name, press "I" button, then enter content, then press Esc key, enter double colon +wq button, save exit
9, view the contents of the file two ways: Cat file name more file name: Enter can be viewed in one line, the Space page by page to look over
10. Create Directory: mkdir
11, MV file 1/(the directory can also be moved), the file will be deleted file 1, if the directory file will be placed under the file 1 below
12, create the directory can be recursively created mkdir-p shandong/heze/danxian/yanglouzhen/liuzhaicun/t/t for recursion
13. Tree Shandong View trees structure, directory organization
14, man view the command's document command--help simple view Help
15. Help command to view Linux built-in commands
16. grep Find Code
17, Tar zcvf demo.tar.gz Linux.log demo own definition name, tar.gz usual habit Linux.log will pack into demo.tar.gz
18, sz demo.tar.gz download package
19. Df-h Disk Utilization
20, Du-sh the current directory size
21, Free-m server memory, the last value of the second row indicates the server's remaining memory
22. Top command on the server to see which program compares memory consumption
23, the current server IP address: IP A can be displayed
24. Add System User Useradd Boy
25, modify the file belongs to the group chown boy.boy file name User (owner). User group (genus Group)
26, rwxr-xr--R=read 4, W = write 2 x = Excute 1 Execute, three a group of RWX user rights,-XR user group permissions r--other permissions, General folder permissions 755
27, chmod Modify Permissions
28, command line switch user Su-user name
29. CPU:
User: The CPU that the process takes up
System: CPU of the operating system itself
Idle:cpukongxianlv
Iowait:cpu time to wait for IO than
30. Kill Process Number elimination process
31. rm File Delete File
32, Mem (memory):
Total: All memory
Usage: Memory usage
Free: Memory Idle
Cached: Caching
Buffered:
33. Find/-name *list* fuzzy Search
34, Find/-size 80m | Xrang LS-LH
"Linux Commands" Linux common commands