All Unix(Linux) System Command to Get Info About CPU, RAM, Process & Others

All About CPU

To Get CPU Info

$ cat /proc/cpuinfo

To Get CPU Architecture Info

$ lscpu
Memory Process Command
Basic Command: ps 
Advance Command: ps aux
Short Syntax: ps aux –sort -type (where –sort is indicated the shorting and -type indicate which you want to short ex: if memory then -%mem)
Type :
USER   = user owning the process
PID      = process ID of the process
%CPU  = It is the CPU time used divided by the time the process has been running.
%MEM = ratio of the process’s resident set the size to the physical memory on the machine
VSZ     = virtual memory usage of the entire process (in KiB)
RSS     = resident set size, the non-swapped physical memory that a task has used (in KiB)
TTY     = controlling tty (terminal)
STAT   = multi-character process state
START = starting time or date of the process
TIME          = cumulative CPU time
COMMAND = command with all its arguments
Example :
Ex-1: Show all process with memory shorting
Command: ps aux –sort -%mem
RAM Command – Details
RAM Used
  • free  (with byte)
  • free -h (with MegaByte)
Disk Space :
df -h — Disk Free
Size Folder Command :
du -msh — all folder size of a directory
du -sh * — all folder size individually
Network Status :
netstat -tulnp (port statistics)
netstat -nlp | grep 8891 (check port 8891)
netstat -atpn (Kind of Port statistics)

Was this article helpful?

Leave A Comment?

You must be logged in to post a comment.