From aliyun.com has seen some people asking questions about commonly used linux commands. I have been searching for these days. now I will list all the commands in one go. 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 & nbsp; Software Management & nbsp; & nbsp
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 # How does tar-c create a 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 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 tar? Xf benet.tar non-compressed package file recovery
62 software management # tar? Zxvf tar? Decompress and restore the zxvf benet.tar.gz package
63 software management # tar-jxvf 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 shut down the LINUX system
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]: View Service Status
75 start Management # Chkconfig? -Level <运行级> <服务名> On | off | set sets the service startup status.
76 start Management # Chkconfig <服务名> On | off | set sets the non-independent service startup status
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 <启动|停止|重启|状态>
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