Summary of points to note about command history

巴扎黑
Release: 2017-06-10 10:50:40
Original
1537 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!