commands used in server
TRANSCRIPT
-
8/13/2019 Commands Used in Server
1/98
COMMANDS USED IN SERVER=========================
netstat -plan | grep :80 | awk '{print $5}'| cut -d: -f1 | sort |uniq -c | sort -n | tail -5; date
netstat -plan | grep :80 | grep 1!5"1#"1#"1%
tail -5 &etc&csf&csf"den (---to c)eck denied *+ , csf
cat &usr&local&apac)e&logs&)ttpd"pid (---to get apac)e process* in cpanel ser.er cat &.ar&run&)ttpd"pid killall -/ )ttpd
Log Files in Cpanel server==========================
tailf &usr&local&apac)e&logs&errorlog tailf &usr&local&apac)e&logs&accesslog tailf &usr&local&apac)e&dologs&pic"1!,ee"co (--seperate log for all doian 2 its su,doain
Error Log keyword or login a!!e"p!===================================
grep aut)entication failure &.ar&log&essagesgrep 3ccepted password &.ar&log&securegrep 4ailed password &.ar&log&secure
------------grep signal ,us &usr&local&apac)e&logs&errorloggrep egentation &usr&local&apac)e&logs&errorlog
e#i"
===== e6i -,pc (---to .iew ail queue count e6i -,p (---list t)e contents of ail queue e6i -,pu (---list t)e contents of undeli.ered ail e6i -,pa (---list t)e contents of deli.ered ail e6i -,+ (---list t)e .alues of 76i configuration
e6i -r (ail *9 (---to reo.e required ail e6i -,pu | awk '{print $}' | 6args e6i -r (---to reo.e all undeli.ered ail e6iqgrep -o 8%00 -i | 6args e6i -r (---reo.e one da ,efore ail
8%00 is ins of one da