View Linux system, service, configuration file time modified

Source: Internet
Author: User

How to view service startup times
[Email protected]/]# Ps-ef |grep nginx
Root 14730 1 0 16:45? 00:00:00 Nginx:master process/usr/local/nginx/sbin/nginx-c/usr/local/nginx/conf/nginx.conf
Nobody 14731 14730 0 16:45? 00:00:00 Nginx:worker Process
Nobody 14732 14730 0 16:45? 00:00:00 Nginx:worker Process
Root 14734 11720 0 16:45 pts/0 00:00:00 grep nginx
[Email protected]/]# Ps-eo pid,lstart,etime |grep 14730
How to view server startup time
[Email protected]/]# uptime
16:47:11 up Days, 16:57, 1 user, Load average:0.00, 0.00, 0.00
How to view when a profile has been modified
Stat/usr/local/nginx/conf/nginx.conf
File: '/usr/local/nginx/conf/nginx.conf '
size:1614 blocks:8 IO block:4096 Regular file
device:fc01h/64513d inode:66458 links:1
Access: (0644/-rw-r–r–) Uid: (0/root) Gid: (0/root)
access:2015-07-08 15:47:24.000000000 +0800
modify:2015-07-08 15:47:24.000000000 +0800
change:2015-07-08 15:47:24.000000000 +0800

View Linux system, service, configuration file modification time

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.