Linux常用命令last怎么用(last,linux,开发技术)

时间:2024-05-09 19:30:43 作者 : 石家庄SEO 分类 : 开发技术
  • TAG :

Linux常用命令ast 命令用于显示用户最近登录信息。

Linux常用命令last怎么用

语法

shell>>last[options]

参数说明

  • -R 省略 hostname 的栏位

  • -num 展示前 num 个

  • username 展示 username 的登入讯息

  • tty 限制登入讯息包含终端机代号

实例

shell>>last-R-2johnneypts/1MonAug1420:42stillloggedinjohnneypts/0MonAug1419:59stillloggedinwtmpbeginsTueAug109:01:102000###/var/log/wtmpshell>>last-2mineryminerypts/0140.119.217.115MonAug1418:37-18:40(00:03)minerypts/0140.119.217.115MonAug1417:22-17:24(00:02)wtmpbeginsTueAug109:01:102000

一般显示方法

#last

简略显示,并指定显示的个数

#last-n5-Rrootpts/4ThuMay1317:25stillloggedinrootpts/2ThuMay1317:23-17:25(00:02)rootpts/1ThuMay1316:46stillloggedinrootpts/7ThuMay1315:36stillloggedinrootpts/9ThuMay1315:35stillloggedinwtmpbeginsThuMay1318:55:402014

显示最后一列显示主机IP地址

#last-n5-a-irootpts/4ThuMay1317:25stillloggedin192.168.1.10rootpts/2ThuMay1317:23-17:25(00:02)192.168.1.10rootpts/1ThuMay1316:46stillloggedin192.168.1.10rootpts/7ThuMay1315:36stillloggedin192.168.1.10rootpts/9ThuMay1315:35stillloggedin192.168.1.10wtmpbeginsThuMay1318:55:402014
 </div> <div class="zixun-tj-product adv-bottom"></div> </div> </div> <div class="prve-next-news">
本文:Linux常用命令last怎么用的详细内容,希望对您有所帮助,信息来源于网络。
上一篇:Linux常用命令ip6tables怎么用下一篇:

11 人围观 / 0 条评论 ↓快速评论↓

(必须)

(必须,保密)

阿狸1 阿狸2 阿狸3 阿狸4 阿狸5 阿狸6 阿狸7 阿狸8 阿狸9 阿狸10 阿狸11 阿狸12 阿狸13 阿狸14 阿狸15 阿狸16 阿狸17 阿狸18