System Info Commands


system

date
It will display current date/time

date

cal
It will display current month’s calendar

cal

uptime
It will display Current time, System Uptime running, users currently logged on & System load averages

uptime

cat /proc/uptime
System Uptime & Idle time of system

cat

w
Display who is online

w

whoami
It will display logged users

whoami

lspci | grep -i net
Checking Gigabyte Connection

lspci

lshw -C memory
Checking Ram Size & Process

lshw

cat /proc/cpuinfo | grep ‘model name’ | uniq
Checking Processor model name

cat

cat /proc/cpuinfo | grep vendor | uniq
Checking Processor vendor ID

cpuinfo

cat /proc/cpuinfo | grep ‘processor’
Checking Processor

processor

cat /proc/cpuinfo | grep -i ‘core id’
Checking Core-ID

coreID

blkid filesystem /dev/sda1
Checking UUDI number

blkid

lshw -short
Hardware Details

lshw sort

sudo df -h
It will display Usage & Disk space available

df -h.png

lshw -C display
It will display VGA compatible controller

lshw

lspci
It will display hardware

lspci

lshw -c network
It will display ethernet interface

network

lsb_release -a
Version information for the Linux release

lsb

free
It displays Free & Used space of memory

free

top
Displays Information on your Linux system, running processes, and system resources, including the CPU, RAM, swap usage

top

uname -a
It displays System info & Kernal Info

uname.png

ifconfig
It displays system’s network interfaces

ifconfig

iwconfig
It shows you any wireless network adapters

iwconfig

ps
It Shows processes running on the machine

ps

lsusb
Lists all USB buses and any connected USB devices

lsusb

ethtool wlan0 (or) eth0
It will displays weather Wireless Port (or) Ethernet Port is Up (or) Down

ethtool

hostname
It will display system hostname

hostname

hostname -f
Display the system’s Fully Qualified Domain Name (FQDN)

hostname r

less /proc/meminfo
It will display amount of free and used memory

less.png

 

swapon -s  (or) cat /proc/swaps
It will display system swap space usage

swaps

vmstat
It will display system virtual memory statistics

vmstat

uname -r
It will display system kernel version number

uname

cat /proc/cmdline
It will display system kernel parameters

cat

getconf LONG_BIT  (or) arch (or) uname -m
It will display system kernel architecture (32 Bit & 64 Bit)

getconf

fdisk -l | grep ‘^Disk /dev’
It will display system disk information of disks and size

fdisk

fdisk -l /dev/sda
It will display List all partitions of /dev/sda disk

sda

lsblk
It will display List all block devices

lsblk

du /home
It will display Estimate file space usage

du home

mount
It will display mounted file systems

mount

lsscsi
It will display SCSI devices

lsscsi

nvidia-smi
It will display system NVIDIA Graphics devices information

YpKT6Jv

fglrxinfo
It will display system AMD/ATI Graphics devices information

fcaq4.png

man
Show manual for command

man

du -sh
Human Readable size in GB

du -sh

cat /proc/asound/cards  (or) arecord -l
It will display system audio devices information

cards

cat /proc/loadavg
It will display system load

loadavg

last reboot
It will display system history

last reboot

last shutdown
It will dislay system shutdown history

last shutdown

runlevel (or) who -r
It will display runlevel

who r

less /var/log/dmesg
It will display kernel ring buffer (boot time) messages

dmesg.png

lsmod
It will display the system drivers (modules)

lsmod

history
It will display all files which are used in system

history

ip a
It will display system IP address and related information

ip a

ip a show eth0
It will display Only show eth0 interface info

show eth0

ip r (or) route -n (or) netsat -nr
It will display the system routing table

ip r

brctl show
It will display the system ethernet bridge

brctl

cat /etc/resolv.conf
It will display  the system DNS server & related information

resolv

cat /etc/host.conf
It will display the system resolver configuration file

host

sudo ss
It will display information about the system ports and socket

sudo ss

ss -l (or) netstat -tulpn
It will display all listing ports

ss -l

ss -t -a
It will display all TCP Sockets

ss -t -a

ss -u -a
It will display all UDP Sockets

ss -u -a

lsof | more
It will show list all open files

lsof

sudo service –status-all
It will display the list of running services

service

sudo initctl list
It will display the list of running services

initctl

service apache2 status
It will show Find out if service is enabled

apache

tail -f /var/log/syslog
It will display log files

syslog.png

grep root /etc/passwd
It will view user account details

password

less /etc/passwd
It will view user account details

less passwd

less /etc/group
It will view group account details

less group

groups man
It will display particular group details

groups man

chage -l root
It will view password policy

chage.png

ltrace /usr/sbin/apache2
It will trace library call

ltrace

pstree (or) ps alxwww
It will view process info

pstree

dpkg -l | less (or) dpkg -l
It will display the system listing of all package installed

dpkg -l

apt-show-versions -a | grep -i “security”
It will display the system listing of all patches installed

show security

ldd libplist.so.1
It will display the list of needed runtime libraries to run file

ldd

dpkg -S /bin/ls
It will display package a file belongs to

dphg -s

dpkg –get-selections > /root/installed.pkgs.txt
It will Create a backup list of all installed software

dpkg backup

dpkg –set-selections < /root/installed.pkgs.txt
It will Restore list af all installed software

dpkg restore

iptables -L -n -v
It will display the system firewall configuration

ipables.png

ufw app list
It will Display available applications

ufw

apt-get install mesa-utils (glxinfo)
It will display details of Graphics card

glxinfo

 

glxinfo | grep direct
It will display rendering 3D

glxinfo direct

glxinfo | grep vendor
It will display vendor details

glxinfo vendor

glxgears
It will prints frame rate to the terminal

glxgears

xrandr
It will display resolutions

xrander

passwd
It will Changing passwd

passwd

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s