转自: http://linux.byexamples.com/archives/467/list-command-line-history-with-timestamp/
history 是一条非常实用的 shell 命令,可以显示出之前在 shell 中运行的命令,配合 last 显示之前登录的用户,就可以追溯是哪个用户执行了某些命令。
不过默认下,history 并不记录命令的执行时间,分析起来很困难。这时候可以配置 HISTTIMEFORMAT 环境变量,给 history 记录添加上时间戳:
效果:
把上面的 export 命令加入到 ~/.bashrc 或者 ~/.bash_profile 中即可在登录后自动开启 history 时间戳了~
其实 HISTTIMEFORMAT 的格式就是 strftime 函数的格式,比如上面的 "%F %T",%F 表示显示出 Y-M-D 格式的日期,%T 表示显示出 H-M-S 这样格式的时间。更多的格式,可以参考 man strftime。
is-Programmer 是一个面向 Linux 爱好者与程序员的 Blog 系统,具有简洁的风格,方便的代码高亮和数学公式插入功能,适合撰写学习笔记和技术文档。
Host by is-Programmer.com | Power by Chito 1.3.3 beta
2008年10月18日 03:36
沙发
已经再用了
2008年10月18日 07:07
这个不错,实用
2020年12月28日 00:21
camping have been the best activity that we can have during the summer, i love to roast marshmallows on a campfire` property management phoenix
2021年1月17日 19:48
Hiya, I’m really glad I’ve found this information. Nowadays bloggers publish just about gossips and net and this is actually irritating. A good blog with interesting content, this is what I need. Thank you for keeping this website, I’ll be visiting it. Do you do newsletters? Can not find it.
2021年1月29日 23:03
Hey there ~ Great stuff, will definitely come back very soon ! My AV Maven Sports Illustrated
2021年2月01日 20:51
I simply couldn’t depart your site prior to suggesting that I actually loved the usual info an individual supply for your visitors? Is gonna be back frequently to investigate cross-check new posts. Maven CEO Ideamensch
2021年2月12日 02:09
Largest lover messages were made to share it with your and gives honour of the bride and groom. Very sound systems facing unnecessary throngs of people should take into account each of our valuable concept of all presenting, which is one’s trailer. best man toasts
2021年2月15日 20:02
You FINALLY want the respect off your family and friends? schlüsseldienst Nürnberg
2021年2月17日 00:28
Empathetic for your monstrous inspect, in addition I’m just seriously good as an alternative to Zune, and consequently optimism them, together with the very good critical reviews some other players have documented, will let you determine whether it does not take right choice for you. rats
2021年2月21日 13:38
Greetings! I know this is kinda off topic but I was wondering which blog platform are you using for this website? I’m getting tired of WordPress because I’ve had issues with hackers and I’m looking at alternatives for another platform. I would be fantastic if you could point me in the direction of a good platform.
2021年3月12日 23:06
I high appreciate this post. It’s hard to find the good from the bad sometimes, but I think you’ve nailed it! would you mind updating your blog with more information? DMT for sale
2021年3月14日 23:11
Pleasant site and completely extraordinary. You can improve yet regardless I say this perfect.Keep striving generally advantageous. wholesale online shopping
2021年3月17日 04:16
Decent post mate, keep up the considerable work, simply imparted this to my friendz 먹튀검증업체
2021年3月18日 06:40
Amazing! This could be a standout amongst the most helpful web journals we have ever go over on thesubject. Really great data! I'm likewise a specialist in this point so I can comprehend your exertion. metal wall art manufacturers
2021年3月18日 06:40
I appreciate what you have done here. I like the part where you say you are doing this to give back yet I would expect by every one of the remarks this is working for you too. unique sunglasses wholesale
2021年3月18日 06:41
There is such a great amount in this article I would never have considered all alone. Your substance gives perusers things to consider in an intriguing way. Much thanks to you for your unmistakable data. wholesale carpet
2021年3月18日 06:41
If it's not too much trouble share more like that. wholesale watch manufacturers
2021年3月18日 18:06
TBSE Madhyamik Exam Model Paper 2022 Tripura Board 10th Class Question Paper 2022 TBSEBlueprint 2022 Madhyamik Model Paper 2022 at www.tbse.in, Tripura Board Madhyamik Exam Model Paper 2022 Pdf Tripura Board Will announce TBSE 10th Exam Question Paper 2022 Online.
2021年3月22日 14:07
Speed has always been an issue when converting files. But this issue, as can be found on sese.altoconvertppttopdf.com, is not exactly an issue when taking into consideration altoconverter. The page also provides sufficient information.
2021年3月28日 20:18
Keep up the fantastic piece of work, I read few posts on this internet site and I think that your web blog is really interesting and contains lots of superb information.
2021年3月31日 21:57
Outstanding article! I want people to know just how good this information is in your article. Your views are much like my own concerning this subject. I will visit daily your blog because I know. It may be very beneficial for me. casino online
2021年4月06日 21:53
being a blogger myself . i can see someone with great potential,
2021年4月14日 21:17
This is really an incredible read for me. I have bookmarked it and I am anticipating perusing new articles. Keep doing awesome!. ktm motorcycles
2021年4月24日 20:15
Hmm it looks like your blog ate my first comment (it was super long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I as well am an aspiring blog writer but I’m still new to the whole thing. Do you have any tips for novice blog writers? I’d genuinely appreciate it. Monthly Income Review
2021年4月27日 15:54
Much obliged to you for another awesome article. Where else would anyone be able to get that sort of data in such an immaculate method for composing? I have a presentation one week from now, and I am on the search for such data.
2021年5月26日 13:36
I like this weblog so much, saved to my bookmarks .
2021年6月03日 03:28
I know your expertise on this. I must say we should have an online discussion on this. Writing only comments will close the discussion straight away! And will restrict the benefits from this information. click here
2021年7月01日 18:37
Precisely what I was searching for, thankyou for putting up. On line Baccarat Activity
2021年10月31日 05:10
I have bookmarked your website, the articles are path superior to anything other comparable sites.. a debt of gratitude is in order for an extraordinary online journal!
2021年11月04日 16:38
It is basic that we read blog entry painstakingly. I am as of now done it and find this post is truly stunning.
2021年11月13日 00:16
Love to read it,Waiting For More new Update and I Already Read your Recent Post its Great Thanks. mmathlab
2021年12月09日 01:18
I've perused some well done here. Certainly worth bookmarking for returning to. I astound the amount of exertion you put to make such an extraordinary useful site.
2022年3月11日 06:11
I’m surely coming again to read these articles and blogs
2022年5月12日 17:14
I’m surely coming again to read these articles and blogs
2023年7月15日 18:00
The contents of the article are very original. thanks for the work, may be an inspires for everything. I am from Imamia Quran Academy. Imamia Shia Academy has made it easier for every Shia Tajweed Quran Student to learn Shia Tajweed at his ease.
2023年12月09日 18:52
Recently, I have commenced a blog the info you give on this site has encouraged and benefited me hugely. Thanks for all of your time & work. Crypto Gurus Traders
2023年12月11日 20:14
Thee Modern Roots brand deals in printed scarves, sarees, dupattas, and pocket squares. The name represents a fusion of traditional and modern styles. The word "roots" symbolizes a heritage connection while "modern" represents contemporary and stylish designs. The use of the word "thee" instead of "the" suggests an emphasis on uniqueness and individuality. men's pocket squares
2023年12月13日 15:28
I have been checking out a few of your stories and i can state pretty good stuff. I will definitely bookmark your blog dana slot
2023年12月23日 20:01
I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept. Thank you for the post. Hellcase promo code
2023年12月23日 21:39
Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work! Binance referral ID
2023年12月23日 23:15
You know your projects stand out of the herd. There is something special about them. It seems to me all of them are really brilliant! Binance futures referral code
2023年12月24日 00:22
I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work... Hellcase promo code
2024年1月14日 15:45
Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.. PPSSPP gold APK
2024年1月17日 16:01
Really a great addition. I have read this marvelous post. Thanks for sharing information about it. I really like that. Thanks so lot for your convene. เว็บตรง ต่างประเทศ ufabet
2024年1月19日 13:08
I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. Thanks... ติดต่อ ufabet เว็บตรง
2024年1月19日 14:04
Discover the <a href="https://airlinerpro.com/nouvelair/nouvelair-jeddah-office-in-saudi-arabia/">Nouvelair Office in Jeddah</a> , your gateway to Tunisian charms. More than a physical location, this office serves as a cultural bridge, connecting the vibrant energy of Jeddah to the enchanting allure of Tunisia.
2024年1月19日 14:05
Discover the Nouvelair Office in Jeddah, your gateway to Tunisian charms. More than a physical location, this office serves as a cultural bridge, connecting the vibrant energy of Jeddah to the enchanting allure of Tunisia.
2024年1月19日 14:09
Welcome to the Nouvelair Jeddah Office, where the warmth of Tunisian hospitality meets the vibrant energy of Jeddah. This office serves as a vital link for travelers seeking a connection to Tunisia and beyond.
2024年1月19日 14:10
Welcome to the Nouvelair Jeddah Office, where the warmth of Tunisian hospitality meets the vibrant energy of Jeddah. This office serves as a vital link for travelers seeking a connection to Tunisia and beyond.
2024年1月19日 14:11
Welcome to the Nouvelair Jeddah Office, where the warmth of Tunisian hospitality meets the vibrant energy of Jeddah. This office serves as a vital link for travelers seeking a connection to Tunisia and beyond.
2024年1月19日 17:04
Very nice article, I enjoyed reading your post, very nice share, I want to twit this to my followers. Thanks!. ufabet เว็บตรง มือถือ
2024年1月20日 15:47
Best growing agrochemical company with the best products like herbicides, fungicides, pesticides, etc.
[url=https://www.bestagrolife.com/product/mahabali][b]Thiamethoxam 30% FS[/b][/url]
2024年1月22日 15:08
One common query that arises is can you bring a razor on a plane. The answer is a nuanced one, as it depends on the type of razor and the current aviation security guidelines.bringing a razor on a plane is generally allowed, but the type of razor and how it is packed play crucial roles in ensuring compliance with aviation security regulations. By understanding the guidelines and taking necessary precautions, you can maintain your grooming routine while soaring through the skies hassle-free.
2024年1月24日 02:41
Official BTS Merch Shop For BTS Merchandise Fans. Fast Shipping With Big Discount. Hurry Up to avail this Offer.
2024年1月24日 15:58
Official Kanye West Merch Website Kanye West Merchandise Fans. Shop Kanye West Clothing With Amazing Hoodies, Shirts & Sweatshirts.
https://ftpclothing.store/
https://hellstarclothingofficial.store/
https://madhappyhoodie.store/
https://theweekndmerch.us/
https://morganwallenmerch.ltd/
2024年1月24日 19:27
The <a href="https://www.selfstudys.com/books/jee-previous-year-paper"> JEE Main Previous Year Question Paper </a> are your perfect companion for the preparation of this exam. The online portal of Selfstudys offers you the best question papers in abundance as your study material. So, come let's dive into the plethora of last year’s question papers of JEE Main for free.
2024年1月25日 01:18
Official Morgan Wallen Merch Store For Morgan Wallen Merchandise Fans. Fast Shipping With Big Discount.
https://ftpclothing.store/
https://hellstarclothingofficial.store/
https://madhappyhoodie.store/
https://theweekndmerch.us/
https://morganwallenmerch.ltd/
2024年1月25日 15:16
The Weeknd Merch Shop For For The Weeknd's Tour Merch Clothing Fans. Get Amazing Hoodies, Sweatshirts And T-shirt With Big Discount.
https://ftpclothing.store/
https://hellstarclothingofficial.store/
https://madhappyhoodie.store/
https://theweekndmerch.us/
https://morganwallenmerch.ltd/
2024年1月25日 17:28
Hellstar Clothing Store is a Streetwear Brand That Offers Quality Of Hoodies, Shirts And More With Big Discount.
https://ftpclothing.store/
https://hellstarclothingofficial.store/
https://madhappyhoodie.store/
https://theweekndmerch.us/
https://morganwallenmerch.ltd/
2024年1月26日 23:30
FTP Clothing Shop for Official FTP Clothing Store Website. UPTO 50% OFF On Hoodies, Shirts & Sweatshirts.
https://ftpclothing.store/
https://ftpclothing.store/
https://hellstarclothingofficial.store/
https://madhappyhoodie.store/
https://theweekndmerch.us/
https://morganwallenmerch.ltd/
2024年1月27日 18:29
Buy Madhappy Hoodie From Official Madhappy Clothing Store. UPTO 50% OFF On New Arrival and Fast Shipping Worldwide.
2024年1月27日 18:31
Buy Madhappy Hoodie From Official Madhappy Clothing Store. UPTO 50% OFF On New Arrival and Fast Shipping Worldwide.
https://ftpclothing.store/
https://hellstarclothingofficial.store/
https://madhappyhoodie.store/
https://theweekndmerch.us/
https://morganwallenmerch.ltd/
2024年2月09日 16:54
I’m going to read this. I’ll be sure to come back. thanks for sharing. and also This article gives the light in which we can observe the reality. this is very nice one and gives indepth information. thanks for this nice article... chartlog avis
2024年2月10日 20:16
Thanks for taking the time to discuss that, I feel strongly about this and so really like getting to know more on this kind of field. Do you mind updating your blog post with additional insight? It should be really useful for all of us. Tissue Paper
2024年2月11日 01:53
The fashion industry's recognition of diverse body types has led to the creation of leggings that celebrate and accentuate the beauty of every woman. leggings women
2024年2月11日 15:58
I’m going to read this. I’ll be sure to come back. thanks for sharing. and also This article gives the light in which we can observe the reality. this is very nice one and gives indepth information. thanks for this nice article... madrid
2024年2月13日 19:47
Discover a seamless travel experience with LOT Polish Airlines Paris Charles de Gaulle Airport Terminal. Enjoy modern facilities, efficient check-in, and diverse shopping options. With a commitment to customer satisfaction, LOT Polish Airlines ensures a comfortable journey, making your time at the terminal truly exceptional.
Visit : https://www.livetravoairlines.com/lot-polish-airlines-airport/lot-polish-airlines-paris-charles-de-gaulle-airport-terminal-cdg/
2024年2月13日 19:57
Discover a seamless travel experience with LOT Polish Airlines Paris Charles de Gaulle Airport Terminal. Enjoy modern facilities, efficient check-in, and diverse shopping options. With a commitment to customer satisfaction, LOT Polish Airlines ensures a comfortable journey, making your time at the terminal truly exceptional.
Visit : https://www.livetravoairlines.com/lot-polish-airlines-airport/lot-polish-airlines-paris-charles-de-gaulle-airport-terminal-cdg/
2024年3月11日 01:34
I enjoy your post; keep up the excellent work. I'm unable to stop reading more of your articles. Thank you for the thoughtfully expressed
<a href="https://ovoclothing.us/">OVO CLOTHING</a>
2024年3月11日 13:58
Hi there, I'm Denis White. I have ten years of experience in social media marketing, therefore I know a lot about a wide range of platforms and services. I have experience with all facets of digital marketing, including strategy creation, email marketing, graphic design, video editing, and product management. These abilities have made me a versatile marketing specialist. I'm skilled at creating engaging content for blogs, social media, and email marketing. In addition, I manage <a href="https://www.healthmedsrx.com" rel="dofollow">healthmedsrx</a> for SEO purposes to rank well in search results. At the moment, I've published articles about <a href="https://www.healthmedsrx.com/product/ocuflox/" rel="dofollow">ocuflox</a> eye drops. In addition, my understanding of sales and client needs enables me to create successful campaigns and generate leads of the highest quality. I am adept with several social media platforms, including Facebook, Instagram, LinkedIn, Twitter, TikTok, YouTube, Pinterest, Telegram, and Discord. I'm also proficient at using Canva Pro and Adobe tools to create visually striking visuals. My experience in project management and customer service has improved my organizational and communication skills, which are essential for managing campaigns and forming successful teams. My ability to enter data and manage books helps me monitor campaign outcomes and adjust plans as needed.
2024年3月12日 13:44
Explore the convenience of British Airways Multi City Flights for seamless travel stories. Discover various locations, maximize your itinerary, and revel in the splendid carrier throughout your adventure.
2024年3月12日 19:03
Looking for a reliable WordPress development company in Delhi? Look no further than Megatask Technologies Pvt. Ltd. We specialize in creating bespoke WordPress websites tailored to your business needs. Our expert team of developers ensures that your website is not only visually stunning but also optimized for performance and functionality. With a focus on user experience and cutting-edge design, we deliver WordPress solutions that help you stand out in the digital landscape. Contact us today to elevate your online presence with our top-notch WordPress development services.
2024年3月15日 19:43
<p><strong>The Quality Instruction</strong></p>
<p>Flex Way courses are made related to industry experts and are consistently modified to meet <a href="https://www.writinkservices.com/phil-3010-week-3-title-the-essence-of-our-existence-exploring-the-interplay-between-science-and-religion/">PHIL 3010 Week 3 Title: The Essence of Our Existence: Exploring the Interplay between Science and Religion</a> the latest business guidelines. This ensures that students get amazing guidance that is huge and important to their picked calling ways.</p>
2024年3月15日 19:43
**The Quality Instruction**
Flex Way courses are made related to industry experts and are consistently modified to meet [PHIL 3010 Week 3 Title: The Essence of Our Existence: Exploring the Interplay between Science and Religion](https://www.writinkservices.com/phil-3010-week-3-title-the-essence-of-our-existence-exploring-the-interplay-between-science-and-religion/) the latest business guidelines. This ensures that students get amazing guidance that is huge and important to their picked calling ways.
2024年3月15日 19:44
[b]The Quality Instruction[/b]
Flex Way courses are made related to industry experts and are consistently modified to meet [url=https://www.writinkservices.com/phil-3010-week-3-title-the-essence-of-our-existence-exploring-the-interplay-between-science-and-religion/]PHIL 3010 Week 3 Title: The Essence of Our Existence: Exploring the Interplay between Science and Religion[/url] the latest business guidelines. This ensures that students get amazing guidance that is huge and important to their picked calling ways.
2024年3月16日 15:16
“We at EducomIQ feels proud to introduce itself as a leader in delivering top coaching Study Materials across India.”
2024年3月20日 16:19
Hello, this weekend is good for me, since this time i am reading this enormous informative article here at my home. 台中婦產科
2024年3月27日 12:52
Harlothub offers a premier platform connecting clients with top-tier female escorts for unforgettable experiences. Our carefully curated selection ensures satisfaction for every preference and desire. From sultry brunettes to fiery redheads, our diverse lineup caters to all tastes. Our <a href= "https://harlothub.com/united-states/texas/dallas/female-escorts.html">dallas escorts</a> are not only stunningly beautiful but also embody sophistication, charm, and discretion. Whether seeking companionship for a night out or intimate moments behind closed doors, Harlothub ensures unparalleled service and absolute satisfaction. Embrace the luxury of choice and indulge in the ultimate escort experience with Harlothub.
2024年3月30日 16:14 Great survey, I'm sure you're getting a great response. Cheap Corrosion Resistant Pvc Gloves
2024年4月17日 17:32
Plan your next trip with the Singapore Airlines Office in New York. The team provides you with knowledgeable information about all your travel needs, from booking flights to accommodation and many more. They assist you with visa requirements also. Experience the great hospitality by Singapore Airlines.
2024年8月28日 15:38
The United Airlines EWR Terminal at Newark Liberty International Airport is a busy center for the airline, handling many domestic and international flights. The terminal provides a modern and efficient space with plenty of amenities like dining, shopping, and comfortable lounges. It’s designed to make the travel process easy and smooth, from check-in to boarding. Close to New York City, this terminal is a key point for passengers flying with United Airlines, offering a convenient and pleasant start to their trip.
2024年9月20日 13:30
Beyond the luxurious in-flight experience, Qatar Airways Office in Amman is dedicated to delivering exceptional customer service that caters to the unique needs of every passenger. Our attentive team is committed to making your journey as seamless and enjoyable as possible, providing assistance with bookings, special requests, and any inquiries you may have. Whether traveling for business or leisure, you can rely on Qatar Airways Office in Amman for an extraordinary travel experience, characterized by unparalleled comfort, elegance, and meticulous attention to detail. Your journey begins with us, where every moment is designed to elevate your travel experience.
2024年9月30日 21:42
https://radhyaroy.com
http://radhyaroy.com
<a href="https://radhyaroy.com" >Jaipur Escorts</a>!!
[url=https://radhyaroy.com]Jaipur Escort[/url] !!
2024年10月24日 20:15
They know how to provide genuine service and our girls have great manners. If you are a newbie in booking Jaipur escorts, don't worry, we can help you. Just dial our agency number, contact us on social media, or send us an email to book your selected call girls. A new sexual life with Jaipur girls awaits!
2024年10月26日 19:18
You make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers. https://telegra.ph/The-Benefits-of-Playing-Bitcoin-Roulette-10-24