From kwang.cn
I have been looking for some questions about common linux commands for a long time. Now I will list them all at once. I hope this will help you. I hope you will like it! The following is a comprehensive introduction to common linux commands (1).
Common linux commands
56 software management # tar-c create package-x release package-v display command process-z represents the compressed package
57 software management # tar-cf tar-cvf benet.tar/home/benet package the/home/benet directory
58 software management # tar-czf tar-zcvf benet.tar.gz/mnt package and compress the Directory
59 software management # tar-tf benet.tar: List of non-compressed files
60 software management # tar-tzf tar-tf benet.tar.gz view the file list of the compressed package
61 software management # tar-xf benet.tar non-compressed package file recovery
62 software management # extract and restore the files in the tar-zxvf benet.tar.gz compressed package
63 software management # tar-jxvf benet.tar.bz2
64 software management # diff file1 file2> patch name. patch generates patch files for new and old files
65 software management # diff file1 file2 compares the differences between the two files
66 software management # Patch file Patch name. patch Patch
67 software management #./configure -- prefix =/usr/local/pre-compilation Configuration
68 software management # make Compilation
69 software management # make install the compiled source code package
70 boot management # reboot Init 6 restart LINUX
71 start management # Halt Init 0 Shutdown-h now disable LINUX
72 start management # runlevel display system running level
73 startup management # Init [0123456] changes the system running level, 7 types
74 start management # Chkconfig -- list [service name] to view the service status
75 startup management # Chkconfig -- level <running level> <service name> on | off | set sets the startup status of the service.
76 startup management # Chkconfig <service name> on | off | set the startup status of a non-independent service
77 Process Management # Top dynamic Ps-aux static process tree pstree view system processes
78 Process Management # program name & background running program
79 Process Management # fg transfers the processes running in the background back to the foreground
80 Process Management # bg transfers the processes running on the foreground to the background
81 Process Management # renice Renice + 1 180 Add the priority of process No. 180 to 1
82 Process Management # kill Kill PID to terminate a PID Process
83 Process Management # at 5 + 3 days
/Bin/ls specify to execute/bin/ls at PM three days later
84 Process Management # crontab Crontab-e uses VI to edit Automatic periodic tasks
85 Process Management # crontab Crontab-l view Automatic periodic tasks
86 Process Management # crontab Crontab-r Delete Automatic periodic tasks
87 Process Management # crond Service crond
Enable Automatic periodic Service crond immediately <START | stop | restart | status>
Implement Disk Quota (Note: Create/home partition when installing LINUX)
Objective: To implement a disk quota of 5 kb for soft limit and 10 kb for zhao in the/home directory.
Steps:
1. Modify the line containing/home, # vi/etc/fstab, and change it to defaults and usrquota. That is, the usrquota item is added. Save and exit.
2. Uninstall the/home directory # umount/home
3. mount/home directory # mount/home
4. Add User maid # useradd
5. Change the password # passwd Todd
6. Generate quota information about the/home directory # quotacheck-cmug/home
# Quotacheck-vu/home
7. View information of all users