摘要: 老李分享:《Linux Shell脚本攻略》 要点(八)1、打印进程[root@localhost program_test]# ps -e | head PID TTY TIME CMD 1 ? 00:00:03 init 2 ? 00:00:00 kthreadd 3 ? 00:00:00 mi... 阅读全文
posted @ 2015-11-23 17:11 北京茑萝信息 阅读(194) 评论(0) 推荐(0)
摘要: 老李分享:《Linux Shell脚本攻略》 要点(七)1、显示给定文件夹下的文件的磁盘适用情况[root@localhost program_test]# du -a -h ./320K ./output.tar96K ./reslt_yang.txt4.0K ./curr_dir.md54.0K... 阅读全文
posted @ 2015-11-23 17:10 北京茑萝信息 阅读(210) 评论(0) 推荐(0)
摘要: 老李分享:《Linux Shell脚本攻略》 要点(六)1、打印网络接口列表[root@localhost touch_more]# ifconfig | cut -c-10 | tr -d ' ' | tr -s '\n'eth0lo//cut-c-10 ; 输出前10个字符;//tr-d ' '... 阅读全文
posted @ 2015-11-23 17:02 北京茑萝信息 阅读(143) 评论(0) 推荐(0)
摘要: 老李分享:《Linux Shell脚本攻略》 要点(五)//1、打包、解包[root@localhost program_test]# tar -cf output.tar 11.txt 22.txt 33.txt[root@localhost program_test]# tar -xf outp... 阅读全文
posted @ 2015-11-23 17:01 北京茑萝信息 阅读(145) 评论(0) 推荐(0)
摘要: 老李分享:《Linux Shell脚本攻略》 要点(四)1、IP地址的正则表达式:[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}2、grep用法//在多级目录中对文本进行递归检索[root@localhost program_test]# grep "y... 阅读全文
posted @ 2015-11-23 16:57 北京茑萝信息 阅读(330) 评论(0) 推荐(0)
摘要: 老李分享:《Linux Shell脚本攻略》 要点(三)1、生产任意大小的文件[root@localhost dd_test]#[root@localhost dd_test]# dd if=/dev/zero of=junk.data bs=1k count=1010+0 records in10... 阅读全文
posted @ 2015-11-23 16:53 北京茑萝信息 阅读(162) 评论(0) 推荐(0)