Ntsysv
Turn off service on boot
Chkconfig--list View all services and 7 operating levels
Chkconfig--level 3 SendMail on/off 3 level turn on or off
Chkconfig SendMail on/off 2 3 4 5 levels are turned on or off 0 1 6 levels that were supposed to be off.
Chkconfig--list | grep sendmail View services are there any
Chkconfig--del sendmail Delete Service
CH kconfig--add sendmail Add service Add services inside the/ETC/INIT.D, the service must be executable
Kill PID kills process kill-9 pid force kill process kill-hup PID reload config file
Log view
Ls/var/log/messages
LS/ETC/LOGROTATE.CONF management logs are cut and archived
Cat/etc/logrotate.d/sysconfig
CAT/VAR/LOG/DSEMG log information when the system starts
DMESG command
Last command which users and IP have logged in the system view/var/log/wtmp
Lastlog record the user's most recently logged on event corresponding/var/log/lastlog
Screen
Curl-i www.baidu.com
Cat/etc/hosts
Linux Daily Management 3