Linux Special Commands

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

rsync -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/lost+found"} /* /path/to/backup/folder

list process using a port

lsof -i :111

ls -l |awk '{ print $6,$7,$8,$9 }'

cat /etc/passwd | awk ' BEGIN{ FS = ":" };{ print $1,$5 }'

rpm -qa --last > last-packages.txt

mount -o remount,rw /

ps aux | grep 'httpd' | awk '{print $6/1024 " MB";}'

to check concurrent connection

ps aux | grep httpd | wc -l

netstat -n | grep :80 | wc -l

echo 'Some Text' | ssh user@remotehost "cat > /remotefile.txt"

netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n

You might also like