Linux Daily Management 3

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.