ls
pwd
cal
time
date
ps -e
ps -ef
ps -eF
ps -ely
lsof -p $$
ALT .
CTRL l
CTRL u
CTRL k
CTRL c
CTRL z
CTRL R
CTRL T
type -a->Find out if ls is builtin or external command
yum search shell / apt-cache search shell
cat /etc/shells--Pathnames of valid login shells
which bash--to display the full path of (shell) commands
chmod +x hello.sh---set execute permission
./hello.sh--------------Running Your Script
#!--used in scripts to indicate an interpreter for execution under Linux OS
#!/bin/bash-----------script starts with it
while loop
while [ condition ];
do
#put ur script here
done
vmstat 3
vmstat -m Memory Utilization
vmstat -a Active / Inactive Memory Pages
w username who is loges in for what
uptime
ps -Al/ps -elps -A/e
ps -AlF
ps -AlFH threads
ps -AlLm threads after processes
ps -ejH process tree
ps -eo euser,ruser,suser,fuser,f,comm,label security information
ps -U nandan -u nandan u : process run by nandan
ps -auxf | sort -nr -k 4 | head -10 top 10 memory consumer
ps -auxf | sort -nr -k 3 | head -10 top 10 cpu consumer
free displays the total amount of free and used physical and swap memory
iostat report statistics
mpstat -P ALL activity of each processor
date; unzip; touch; strip; finger; mount; gasp; fsck; more; yes; uptime; top; man ;unmount; sleep;