In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to query the operation time of history in linux, the content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
To view the operation time of history records in the linux operating system, you can follow these steps:
1. Modify the / etc/profile file and add: export histtimeformat= "% f% t `whoami`" at the end
2, or under the user directory, modify the file .bash _ profile and add export histtimeformat= "% f% t `whoami`"
Exit the terminal and log in again.
For example, check the history operation time:
The code is as follows:
[root@jb51 ~] $history | tail
2013-06-24 19:06:04 admin vi .bash _ profile
990 2013-06-24 22:06:03 admin ll
991 2013-06-24 22:06:09 admin vi .bash _ profile
992 2013-06-24 22:06:18 admin ll-ag
993 2013-06-24 22:06:55 admin history | tail
994 2013-06-24 22:07:11 admin vi .bash _ profile
2013-06-24 22:07:24 admin history | tail
996 2013-06-24 22:07:32 admin eixt
997 2013-06-24 22:07:35 admin exit
2013-06-24 22:07:41 admin history | tail
The operation time of how to query history in linux is shared here. I hope the above content can be helpful to you and learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.