摘要:
获取当前的时间,并输出 shell !/bin/bash if [ $ ne 1 ];then echo "input an dmesg time" exit 1 fi unix_time= echo ${unix_time} date d "@${unix_time}" '+%Y %m %d %H 阅读全文
摘要:
三个方法 1. proc文件系统 2. ubunut debain 3. 红帽等 proc文件系统 /proc/config.gz This file shows you the compile time configuration settings for the kernel (gzip com 阅读全文
摘要:
服务查看 查看所有服务运行状态: service status all chkconfig list 查看单个服务的运行状态 service sshd status 查看启动状态,是否开机自动启动 chkconfig list servicename 0:开机 1:单用户模式 2:多用户模式,不具有 阅读全文