Thursday, July 19, 2012

Find inside linux server

* To find all the RPM packages which were installed on a particular date in a Linux Server:

# rpm -qa --queryformat "%{NAME}-%{VERSION}.%{RELEASE} (%{ARCH}) INSTALLED: %{INSTALLTIME:date}\n"


* Find out last reboot and shutdown

# last reboot
 wtmp begins Fri Apr  15 12:39:32 2011
# last shutdown
 wtmp begins Fri Apr 15 12:39:32 2011
The LAST command also lists the sessions of users logged in at a specific date and time as well.

Using the WHO command and the “-b” option:
$ who -b
 system boot  2011-04-15 12:39



* Find out bios version in linux box

# dmidecode --type 0

No comments:

Post a Comment