Linux useful commands
memory
free -m
sar -a 2 2
ps -eo pid,cmd,%mem,%cpu --sort=-%mem | headCPU
sar -u 3 3
ps -eo pid,cmd,%mem,%cpu --sort=-%cpu | head
topprocess
ps -e --forest | grep sshd
lsof -p piddisk and files
df -hP
du -h
ls -i
ls -ltr
state file
fuser filename
lsof filenamenetwork
accounts and permission
system
Last updated
Was this helpful?