Linux command for system information
MotherBoard :-
dmidecode -t 2
CPU :-
cat /proc/cpuinfo
Memory :-
cat /proc/meminfo
HardDisk :-
fdisk -l
System Configuration :-
dmidecode > hardwaredetails.txt
ll
less hardwaredetails.txt
MotherBoard :-
dmidecode -t 2
CPU :-
cat /proc/cpuinfo
Memory :-
cat /proc/meminfo
HardDisk :-
fdisk -l
System Configuration :-
dmidecode > hardwaredetails.txt
ll
less hardwaredetails.txt
How to check date?
Type date command
#date
Thu May 12 15:43:04 IST 2011 (Shown on today date)
How to set date and time?
For example, set new data to 2 Oct 2006 18:00:00, type the following command as root user:
# date -s "2 OCT 2006 18:00:00"
OR
# date --set="2 OCT 2006 18:00:00"
You can also simplify format using following syntax:
# date +%Y%m%d -s "20081128"
To set time use the following syntax:
# date +%T -s "10:13:13"
Where,
Use %p locale’s equivalent of either AM or PM, enter:
# date +%T%p -s "6:10:30AM"
# date +%T%p -s “12:10:30PM”
Courtesy :-http://www.cyberciti.biz/