Linux command to know information about Linux system

How to find Gnome Desktop version:

gnome-panel --version

How to find Mozilla browser version:

mozilla --version

How to find Firefox browser version:

firefox --version

How to find current Language:

set | egrep '^(LANG|LC_)'

How to find disk space usage:

df -h

How to find/know file space usage:

du -h

How to find version of Linux glibc:

ls -l /lib/libc-*.so /lib/libc.so*

How to find user limits:

ulimit -a

How to list all installed device drivers (modules)

lsmod

Command to find out information about Linux CPU

cat /proc/cpuinfo

How to find information about Linux Memory

cat /proc/meminfo

OR

free -m

OR

free -g

How to find user shell name:

ps -p $$ | tail -1 | awk '{ print $4 }'

Dump Linux kernel variables

/sbin/sysctl -a

How to find running Linux kernel version:

uname -mrs
uname -a
cat /proc/version

How to dump or display memory information and swap information:

free -m

Knowing network card and IP address information:

ifconfig -a
ifconfig -a|less

Configuring Debian / Ubuntu Linux network  file (all interface eth0,eth1,…ethN)

more /etc/network/interfaces

Display routing information

route -n
route

Display list of all open ports

netstat -tulpn

View login related logs

tail -f /var/log/secure
vi /var/log/secure
grep 'something' /var/log/secure

View mail server related logs

tail -f /var/log/maillog
vi /var/log/maillog
grep 'something' /var/log/maillog

How to find long the system has been running

uname
w

list who is logged on and what they are doing

w
who

Display list of tasks

top

Display all running process

ps aux
ps aux | grep process-name

Display list of all installed software on Debian / Ubuntu

dpkg --list
This entry was posted in Linux. Bookmark the permalink.