2015年8月10日

课后习题-14

摘要: 1. 如何把 /etc/passwd 中用户uid 大于500 的行给打印出来?2. awk中 NR,NF两个变量表示什么含义?awk -F ':' '{print $NR}' /etc/passwd会打印出什么结果出来?3. 用grep把1.txt文档中包含'abc'或者‘123’的行过滤出来,并... 阅读全文

posted @ 2015-08-10 14:38 linuxSu 阅读(331) 评论(0) 推荐(0) 编辑

date 命令详解

摘要: date - print or set the system date and timeDisplay the current time in the given FORMAT, or set the system date.作用:以给定的格式显示当前时间,或设置系统日期。语法:date [OPTI... 阅读全文

posted @ 2015-08-10 13:58 linuxSu 阅读(432) 评论(0) 推荐(0) 编辑

导航