Running Kernel and System Information

Unix command for running the kernel and system information

#  uname  -a #  Get  the  kernel  version  (and  BSD  version)

#  lsb_release  -a #  Full  release  info  of  any  LSB  distribution

#  cat  /etc/SuSE-release #  Get  SuSE  version

#  cat  /etc/debian_version #  Get  Debian  version
 

Use /etc/DISTR-release with DISTR= lsb (Ubuntu), redhat, gentoo, mandrake, sun (Solaris), and so on. See also /etc/issue.

#  uptime #  Show  how  long  the  system  has  been  running  +  load

#  hostname #  system's  host  name

#  hostname  -i #  Display  the  IP  address  of  the  host.  (Linux  only)

#  man  hier #  Description  of  the  file  system  hierarchy

#  last  reboot #  Show  system  reboot  history
 

Kernel detected hardware

#  dmesg #  Detected  hardware  and  boot  messages

#  lsdev #  information  about  installed  hardware

#  dd  if=/dev/mem  bs=1k  skip=768  count=256  2>/dev/null  |  strings  -n  8  #  Read  BIOS
 

FreeBSD

#  sysctl  hw.model #  CPU  model

#  sysctl  hw #  Gives  a  lot  of  hardware  information

#  sysctl  vm #  Memory  usage

#  dmesg  |  grep  "real  mem" #  Hardware  memory

#  sysctl  -a  |  grep  mem #  Kernel  memory  settings  and  info

#  sysctl  dev #  Configured  devices

#  pciconf  -l  -cv #  Show  PCI  devices

#  usbdevs  -v #  Show  USB  devices

#  atacontrol  list #  Show  ATA  devices

#  camcontrol  devlist  -v #  Show  SCSI  devices

Have a Unix Problem
Do you have a UNIX Question?

Unix Books :-
UNIX Programming, Certification, System Administration, Performance Tuning Reference Books

Return to : - Unix System Administration Hints and Tips

(c) www.gotothings.com All material on this site is Copyright.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
All product names are trademarks of their respective companies.
The site www.gotothings.com is in no way affiliated with or endorsed by any company listed at this site.
Any unauthorised copying or mirroring is prohibited.