linux who last history 查看系统登陆和命令记录

网友投稿 699 2022-05-30

ECS信息

规格:2vCPUs | 4GiB | kc1.large.2

镜像:openEuler 20.03 64bit with ARM | 公共镜像

linux who last history 查看系统登陆和命令记录

who 显示当前的所有登陆用户

# who root pts/0 2021-10-04 14:23 (1.202.9.84)

last 查看近期的登录情况

# last root pts/0 1.XXX.9.84 Mon Oct 4 14:23 still logged in root pts/0 1.XXX.8.6 Sun Oct 3 09:59 - 22:27 (12:28) reboot system boot 4.19.90-2003.4.0 Sun Oct 3 09:59 still running root pts/1 XX.7.XXX.242 Sat Oct 2 23:10 - 23:10 (00:00) root pts/1 XX.7.XXX.242 Sat Oct 2 23:09 - 23:09 (00:00) root pts/1 XX.7.XXX.242 Sat Oct 2 22:55 - 22:56 (00:00) root pts/1 X.XXX.X.XXX Sat Oct 2 22:52 - 22:52 (00:00) root pts/0 1.XXX.10.XXX Sat Oct 2 21:27 - 23:33 (02:05) root pts/0 1.XXX.9.XX Thu Sep 30 15:59 - 21:25 (05:26) root pts/0 XXX.XXX.18.13 Sun Sep 26 16:54 - 22:30 (05:35) root pts/0 XXX.XXX.69.99 Sun Sep 26 16:49 - 16:54 (00:05) reboot system boot 4.19.90-2003.4.0 Sun Sep 26 16:48 - 23:33 (6+06:45) reboot system boot 4.19.90-2003.4.0 Mon Aug 23 19:07 - 16:47 (33+21:40)

history 显示历史上执行过的命令

# history 10 434 whereis python 435 which python 436 stat /usr/bin/python 437 whatis python 438 whereis python 439 python 440 who 441 last 442 history -n 10 443 history 10

学习资料

linux who last history 查看系统登陆和命令记录

弹性云服务器 ECS

openEuler-官网

openEuler-B站

openEuler-慕课

openEuler-文档

鲲鹏社区

欢迎各位同学一起来交流学习心得^_^

Linux openEuler

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:【华为IoT Openlab】 全球SIM连接(GSL)严选测试资料下载
下一篇:java技术简介:【JSP、Servlet、JDBC、JavaBean(Application)】
相关文章