Hi Suresh! On 24/08/10 9:20 AM, Tha.Suresh wrote:
When was your OS installed?Show time and date when you installed your OS. $ ls -lct /etc | tail -1 | awk '{print $6, $7}' 2010-08-03 12:44
Great hack! But if you know what you really want, it can be much simpler on Linux: stat --format="%Y" /etc/fedora-release # Works for Fedora Linux stat --format="%Y" /etc/slackware-version # Works on Slackware Linux stat --format="%Y" /etc/debian-release # Works on Debian Linux stat --format="%Y" /etc/lsb-release # Works on *ubuntu and Linux Mint By this, expensive ls and awk commands could be avoided. Keep up the good work! -- Chandrashekar Babu., http://www.chandrashekar.info/ _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
