Home  >  Article  >  Operation and Maintenance  >  Summary of points to note about command history

Summary of points to note about command history

巴扎黑
巴扎黑Original
2017-06-10 10:50:401542browse

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

Summary of points to note about 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn