第三周作业本周作业内容:1、列出当前系统上所有已经登录的用户的用户名,注意:同一个用户登录多次,则只显示一次即可。[root@SeaFile~]#who|cut-d""-f1|uniqseafileroot[root@SeaFile~]#2、取出最后登录到当前系统的用户的相关信息。[root@SeaFile~]#last|head-1|cut-d""-f1|..
分类:
其他好文 时间:
2016-08-21 16:59:36
阅读次数:
284
1、列出当前系统上所有已经登录的用户的用户名,注意:同一个用户登录多次,则只显示一次即可。答:1,[root@localhost~]#who|cut-d""-f1|uniq
root
[root@localhost~]#who|awk‘{print$1}‘|uniq
root
[root@localhost~]#2、取出最后登录到当前系统的用户的相关信息。答:[root@..
分类:
其他好文 时间:
2016-08-21 16:57:15
阅读次数:
169
1、列出当前系统上所有已经登录的用户的用户名,注意:同一个用户登录多次,则只显示一次即可。[root@Client~]#who
rootpts/02016-08-0700:40(192.168.137.2)
user2pts/12016-08-0703:22(192.168.137.2)
user1pts/22016-08-0703:21(192.168.137.2)
user2pts/32016-08-0703:23(1..
分类:
其他好文 时间:
2016-08-21 01:05:48
阅读次数:
316
1、列出当前系统上所有已经登录的用户的用户名,注意:同一个用户登录多次,则只显示一次即可。[root@localhost~]#who|cut-d‘‘-f1//切割字符串,-d指明字符为空格,-f,显示第1列
jun_shao
jun_shao
jun_shao
jun_shao
root
root
[root@localhost~]#who|cut-d‘‘-f1|sort-u
jun_s..
分类:
系统相关 时间:
2016-08-21 01:03:23
阅读次数:
481
Lottery Today Berland holds a lottery with a prize — a huge sum of money! There are k persons, who attend the lottery. Each of them will receive a uni ...
分类:
其他好文 时间:
2016-08-21 00:36:04
阅读次数:
195
1、列出当前系统上所有已经登录的用户的用户名,注意:同一个用户登录多次,则只显示一次即可。who|cut-d""-f1|sort-u2、取出最后登录到当前系统的用户的相关信息。w|tail-13、取出当前系统上被用户当作其默认shell的最多的那个shell。sort-t:-k7/etc/passwd|cut-d:-f7|uniq-c|..
分类:
系统相关 时间:
2016-08-20 14:50:25
阅读次数:
308
作业1、列出当前系统上所有已经登录的用户的用户名,注意:同一个用户登录多次,则只显示一次即可。who|awk-F‘‘‘{print$1}‘|uniq2、取出最后登录到当前系统的用户的相关信息。w>/a.txt&&tail-n1/a.txt3、取出当前系统上被用户当作其默认shell的最多的那个shell。cat..
分类:
其他好文 时间:
2016-08-20 14:45:22
阅读次数:
187
推荐一个关于分类、目标检测、姿态估计的数据集收藏的网页。 Did you ever want to quickly learn?which paper provides the best results on standard dataset X ?Wait no more, just click ... ...
分类:
其他好文 时间:
2016-08-20 13:08:03
阅读次数:
158
1、列出当前系统上所有已经登录的用户的用户名,注意:同一个用户登录多次,则只显示一次即可。Who|cut-d‘‘-f1|sort-u2、取出最后登录到当前系统的用户的相关信息。who|tail-n13、取出当前系统上被用户当作其默认shell的最多的那个shell。cut-d:-f7/etc/passwd|sort|unique-c|s..
分类:
其他好文 时间:
2016-08-19 22:39:20
阅读次数:
319
Friends are not the people you meet at the top, they are the people who were with you at the bottom. 朋友不是你身居高位时遇到的那些人,而是在你穷困潦倒时依然在你左右的那些人。 We often sa ...
分类:
其他好文 时间:
2016-08-19 20:26:26
阅读次数:
133