大连Linux/Unix高端就业、认证培训的领导者。
| 标题 | 阅读 | 评论 | 转发 | 发布日期 | |
|---|---|---|---|---|---|
| 试验:Linux-iscsitarget做软磁盘阵列 | 1287 | 0 | 0 | 2009-09-24 | |
| linux iSCSI target/initiator配置 | 1499 | 0 | 0 | 2009-09-24 | |
| 判断、循环等语法总结 | 767 | 0 | 1 | 2009-07-11 | |
| read命令循环读文本文件的方法 | 1155 | 0 | 1 | 2009-07-11 | |
| DHCP配置试验 | 1203 | 0 | 0 | 2009-06-19 | |
| 红帽RHEL5U3平台实现pppoe接入记账认证服务器的配置文档 | 1121 | 0 | 0 | 2009-06-11 | |
| 基于用户级别的samba服务器配置 | 1092 | 0 | 0 | 2009-06-11 | |
| 关于RHCE考试的30个主要方向 | 769 | 0 | 0 | 2009-06-11 | |
| vsftpd-2.0.5源代码安装和PAM使用 | 1716 | 0 | 0 | 2009-06-11 |
w6308661392013-03-26 17:04
gltnsrice:尹伊明:
a:
[root@localhost ~]# w | sed 's/\([....]\{4,\}\) .*/\1/'
[root@localhost ~]# w | cut -d' ' -f1 | sed 's/\(.....*\)/\1/g'
[root@localhost ~]# who | sed 's/\([^ ]\{4,\}\) .*/\1/'
[root@localhost ~]# who | grep '^[^ ]\{4,\}'
b:
[root@localhost home]# cat passwd | cut -d: -f3 | grep '[0-9]\{3,\}'
[root@localhost home]# cat passwd | cut -d: -f1,3 | grep '[0-9]\{3,\}'
d:
[root@localhost home]# ls -l | sed 's/ */*/g' | cut -d* -f9,5 | sort -n







gltnsrice2013-03-16 12:07
尹伊明:
a:
[root@localhost ~]# w | sed 's/\([....]\{4,\}\) .*/\1/'
[root@localhost ~]# w | cut -d' ' -f1 | sed 's/\(.....*\)/\1/g'
[root@localhost ~]# who | sed 's/\([^ ]\{4,\}\) .*/\1/'
[root@localhost ~]# who | grep '^[^ ]\{4,\}'
b:
[root@localhost home]# cat passwd | cut -d: -f3 | grep '[0-9]\{3,\}'
[root@localhost home]# cat passwd | cut -d: -f1,3 | grep '[0-9]\{3,\}'
d:
[root@localhost home]# ls -l | sed 's/ */*/g' | cut -d* -f9,5 | sort -n