Sunday, December 11, 2011

Surveying a Linux System, Part 2 - Software

A few days back, I listed  some Linux commands for getting hardware information. Now onto software and operating system information. Again, you may need to run some of these as root and your mileage may vary, since not all distros are alike.

List version of Red Hat/Fedora/CentOS
# cat /etc/redhat-release

List version of SuSE
# cat /etc/SuSE-release

List verion of Ubuntu
# cat /etc/lsb-release

Kernel info
# uname -a

View network info
# ifconfig

DNS servers
# cat /etc/resolv.conf
Hostname and Gateway
# cat /etc/sysconfig/network

Shell being used
# echo $SHELL

Check cron jobs (scheduled tasks)
# crontab -l

The final Linux command installment will cover some troubleshooting commands.


  1. hello

    cat /etc/issue
    should be
    cat /etc/lsb-release

    unname -a
    should be
    uname -a

    echo $shell
    should be
    echo $SHELL

  2. Thanks! I didn't think anyone was reading this stuff ;)