--------------------------------- Tips --------------------------------
1. tset, reset // initialization terminal: terminal initialization
2. Run 'echo * 'in combination with cd // when the ls command is unavailable, you can view the directory.
3. which ping // view the executable file path
4. l. // view hidden files
5. sync; reboot // write data in the memory to the hard disk before shutdown
6. w // more detailed than the who command
7. finger jacky // display jacky user details
8. umount-l 192.168.0.148:/exprots // uninstall the file system where device is busy
9. fuser-mv/mnt/nfs/c // check which processes are using the mounted file system
9. fuser-mvik/mnt/nfs/c // k: Kill all processes that use the mounted file system. I: Prompt before killing
10. 'mount-o remount, rw/'// re-mount in read/write mode/
11. dmesg | more // view the startup information recorded by the kernel: used for troubleshooting
Dmesg> boot. messages
12. Tail-F/var/log/messages // view the log record information:
13. Free Top // view memory (including swap) Usage
14. pgrep-l-T pts/2 // view the processes running on the specified Terminal
15. pgrep-l-u Jon, Jenny // view processes belonging to the specified user
16. Tar CZF--C/data/MySQL. DB | SSH 192.168.0.23 tar xzvf--C/backup/
17. CHSH-l // list the scripts in/etc/shells. The scripts in this file exist in/bin/or/sbin /.
18. egrep 'vmx | SVM '/proc/cpuinfo // check whether the CPU flag supports KVM virtualization.
19. findfs label = <label> | UUID = <UUID> // find the specified file system and display its device name
--- // Close the process
20. pkill named // pname
Kill [-9] 7873 // PID
21. When resize2fs/dev/vg0/lv0 // enlarge the LV, remember to zoom in the FS later.
// Expand FS [******* otherwise, {New} physical space [unavailable] n *******] not covered by FS in lv0 [unavailable]
22. man 5 passwd/man 1 passwd // [1]: USER command; [5]:
23. grep flags/proc/cpuinfo // check whether the CPU supports [hardware virtualization function]: mvx | svm
24. id // display the SELinux context of the current shell: unconfined_t-> All SELinux policies can be ignored.
25: sysctl // man-8 sysctl: Modify Kernel Parameters
26: who-r // view the running level
27. uname-a/rpm-q kernel // view the kernel version number
28. getent passwd | hosts | shadow |... // view records of a specified type of database.
// Database is one of ahosts, ahostsv4, ahostsv6, aliases, ethers, group, hosts,
// Netgroup, networks, passwd [file], protocols, rpc, services or shadow.