Linux常用命令last怎么用
导读:本文共1316.5字符,通常情况下阅读需要4分钟。同时您也可以点击右侧朗读,来听本文内容。按键盘←(左) →(右) 方向键可以翻页。
摘要: Linux常用命令ast 命令用于显示用户最近登录信息。语法shell>>last[options]参数说明:-R 省略 hostname 的栏位-num 展示前 num 个username 展示 username 的登入讯息tty 限制登入讯息包含终端机代号实例shell>>last-R-2johnneypts/1MonAug1420... ...
音频解说
目录
(为您整理了一些要点),点击可以直达。语法
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怎么用的详细内容,希望对您有所帮助,信息来源于网络。