hey ,
Anyone knows command to find when Linux OS is installed?
Date and time?
AFAIK there is no standard linux command for what you want to do.
For Fedora/Redhat/Centos you can figure it out from the date of the /root/install.log or from the contents of /root/install.log.syslog.
uname
As in:
case $(uname) in
Linux) : some linux command ;;
FreeBSD) : some FreeBSD command ;;
*) : ??? ;;
esac
date
Just the date:
date +%Y-%m-%d
Just the time:
date +%H:%M:%S
Read the man page for all the formatting options.