12 2017 档案
摘要:1、开机bios自检 2、MBR引导 硬盘0柱面0磁道1扇区前446byte 3、grub引导扇区 cat /etc/grub 4、加载内核 5、启动/etc/inittab ps -ef|grep init 进程号为1 6、执行/etc/rc.d/rc.sysinit脚本 7、执行/etc/rc.
阅读全文
摘要:ps -ef|grep "/sshd"|grep -v grep|wc -l 1 netstat -lntup|grep sshd |wc -l 2
阅读全文
摘要:ls -lrt r 倒序 t 按修改时间排序 依赖于当前系统时间
阅读全文
摘要:echo stu{01..20}|xargs -n 1 > nginx.conf 空行不计数的: nl nginx.conf 空行计数的: cat -n nginx.conf vi/vim nginx.conf; :set nu/set nonu awk '{print NR,$0}' nginx.
阅读全文
摘要:创建n天前的日志 mkdir /home/llj/app/logs -pcd /home/llj/app/logsfor n in `seq 14` ;dodate -s "2016/10/$n";touch access_www_$(date +%F).log ;donedate -s '2016
阅读全文
摘要:测试环境,/llj下有许多的目录、文件等: [root@test llj]# lltotal 0drwxr-xr-x 2 root root 17 Dec 3 10:04 ext-rw-r--r-- 1 root root 0 Dec 3 10:04 jeacen-rw-r--r-- 1 root
阅读全文