linux who last history 查看系統登陸和命令記錄
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
學習資料
彈性云服務器 ECS
openEuler-官網
openEuler-B站
openEuler-慕課
openEuler-文檔
鯤鵬社區
歡迎各位同學一起來交流學習心得^_^
Linux openEuler
版權聲明:本文內容由網絡用戶投稿,版權歸原作者所有,本站不擁有其著作權,亦不承擔相應法律責任。如果您發現本站中有涉嫌抄襲或描述失實的內容,請聯系我們jiasou666@gmail.com 處理,核實后本網站將在24小時內刪除侵權內容。
版權聲明:本文內容由網絡用戶投稿,版權歸原作者所有,本站不擁有其著作權,亦不承擔相應法律責任。如果您發現本站中有涉嫌抄襲或描述失實的內容,請聯系我們jiasou666@gmail.com 處理,核實后本網站將在24小時內刪除侵權內容。