How to see time stamps in bash history? Rumi, April 22, 2020 Is there any way I can see at what time the commands were executed from the bash history? We can see the order but is there any way I can get the time also? Bottom-Line: Execution time in the Bash history: HISTTIMEFORMAT="%d/%m/%y %T " # for e.g. “29/02/99 23:59:59” HISTTIMEFORMAT="%F %T " # for e.g. “1999-02-29 23:59:59” To make the change permanent for the current user run: echo 'HISTTIMEFORMAT="%d/%m/%y %T "' >> ~/.bashrc # or respectively echo 'HISTTIMEFORMAT="%F %T "' >> ~/.bashrc source ~/.bashrc To test the effects run: history Related Administrations Configurations (Linux) History
Install Percona Monitoring and Management using Docker September 9, 2022 You can any distribution for installation- Rocky/Alma/CentoS 8 Stream. I assume you’ll use anyone of these instance. Step 1: Add Docker Repository Docker is not yet available on default repositories. Thankfully, an official repository has been provided by developers and we are going to add it first to the system…. Read More
Postfix 2.2.3 main.cf configured sample file October 28, 2008 queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix mail_owner = postfix myhostname = server.domain.com mydomain = domain.com myorigin = $mydomain inet_interfaces = all mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail. $mydomain, www.$mydomain, ftp.$mydomain local_recipient_maps = unknown_local_recipient_reject_code = 550 mynetworks = 192.168.1.0/24 127.0.0.0/8 #relay_domains = $mydestination #relayhost = $mydomain #relayhost… Read More
Icininga on SSL June 25, 2012 This is intended to be an introduction for implementation of stronger authentication and server security focused around the CGI web interface. There are many ways to enhance the security of your monitoring server and Icinga environment. This should not be taken as the end all approach to security…. Read More