linux后台运行程序及恢复

分类:Ubuntu分类:RedHat分类:Debian1. 后台运行的两个命令 & 和 ctr+z

[命令]空格[&] 

比如:

[root@pcmxexweb etc]# find / -name xml &

这样,这个查找程序就会在后台运行。它运行的同时不影响你干别的事情。

但是有的时候忘记了在命令之后加上‘&’符号,又不愿意停下此命令重新改写。这是可以按[ctrl+z],把当前程序切入后台。 继续阅读 »

logrotate命令及配置

分类:RedHatlogrotate [options]  config_files
System administration command. Manipulate logfiles according to commands given in config_files.
Options
-d, –debug
Debug mode. No changes will be made to logfiles.
-f, –force
Force rotation of logfiles.
-h, –help
Describe options.
-m command, –mail command
Use the specified command to mail logfiles. The default command is /bin/mail -s.
-s file, –state file
Save state information in file. The default is /var/lib/logrotate.status.
–usage
Show syntax and options.
-v, –verbose
Describe what is being done and what logfiles are affected.

继续阅读 »


返回顶部