1. View the currently logged in user information who command: The default output of who includes user name, terminal type, login date and remote host. who /var/log/wtmp You can view every login since the wtmp file was created (1) -b: View the latest startup time of the system (2) -H: Print the title of each column users command: Print the currently logged in users, each displayed user name corresponds to a login session. 2. Check the command history. Each user has a command history. Check $HOME/.bash_history or enter: history3. last command in the terminal to check the user login history. This command will read the /var/log/wtmp file; /var/log/btmp can display remote login information. &n
1. Linux User Management (3) Detailed explanation on how to view user login time and command history
Introduction: 1. View the currently logged in user information who command: The default output of who includes user name, terminal type, login date and remote host. who /var/log/wtmp You can view every login since the wtmp file was created (1) -b: View the latest startup time of the system (2) -H: Print the title of each column users command: Print the currently logged in user , each displayed username corresponds to a login session. 2. View command history. Each user has
The above is the detailed content of Summary of points to note about command history. For more information, please follow other related articles on the PHP Chinese website!