Sunday, 30 June 2013

Check Your Linux Server Age - Remove Hashes and blank Lines fro a file

Remove Hashes (#) from a file.

cat /etc/squid/squid.conf | sed '/ *#/d; /^ *$/d'

Different ways of checking Linux Server Age


tune2fs -l /dev/sda1 | grep created
ls -alct /root
ls -alp /etc/ssh/ssh_host_dsa_key.pub | cut -d " " -f6
rpm -qi basesystem | grep "Install Date"

No comments:

Post a Comment