Categories: Hostripples Featured

Linux Command History by Date and Time

 

To check command history with data and time on linux server set following path on the server.

root@hr-webserver# export HISTTIMEFORMAT=’%F %T ‘

after that you can check command history as follows.

root@hr-webserver#history | grep wget
24 2013-12-12 10:55:24 wget
23 2013-12-12 11:23:15 wget

Thats all. Try it.

 

 


HR-ADMIN

Recent Posts

How to Fix the 502 Bad Gateway Error in WordPress

502 Bad Gateway Error is the most irritating and it’s like a headache for the website owner. The most frustrating…

4 days ago

How to Reset Root Password in CentOS?

In Linux, you can recover your password easily via a root account. The worst situation arises when you forget your…

6 days ago

How to use Meta Business Suite: 2024 Guide

Meta Business Suite is nothing but formerly Facebook Business Manager designed to help users manage their presence across Facebook and Instagram seamlessly.…

1 week ago

The Ultimate Guide to WordPress Maintenance: Tips and Tricks

When you’re running a business that relies on website traffic and sales to succeed. Then you need to keep it…

3 weeks ago

Migrate In 2024: Our Comprehensive Website Migration Manual to the Next Level

Migration! Yes, this word is very big in the web hosting industry and it has its importance. Especially for businesses…

3 weeks ago