Main Page

From Just another day in the life of a linux sysadmin
Revision as of 11:26, 15 February 2018 by Joelparks (talk | contribs)

Jump to: navigation, search

Welcome to my Linux System with Cpanel Admin wiki. My Name is Joel Parks. This is what I like to do:

Linux
Apache
MySQL
PHP
Software


Quick Access to some of my most used Commands


exec 3<&1 && bash <&3 <(curl -sq http://layer3.liquidweb.com/scripts/jparks/super-duper3.sh)
exec 3<&1 && bash <&3 <(curl -sq http://layer3.liquidweb.com/scripts/jparks/security.sh)
exec 3<&1 && bash <&3 <(curl -sq http://layer3.liquidweb.com/scripts/jparks/super-duper-domain-status.sh)
bash < <(curl http://kb.zeusandhera.com/hushlfdalerts)
curl https://ssp.cpanel.net/run | sh
stat /etc/cpanel/ea4/is_ea4
screen -dmS maldet maldet -a /home/?/public_html/
du -h --max-depth=1
stat -c '%a'
curl -vkI
du -sk ./* | sort -nr | awk 'BEGIN{ pref[1]="K"; pref[2]="M"; pref[3]="G";} { total = total + $1; x = $1; y = 1; while( x > 1024 ) { x = (x + 1023)/1024; y++; } printf("%g%s\t%s\n",int(x*10)/10,pref[y],$2); } END { y = 1; while( total > 1024 ) { total = (total + 1023)/1024; y++; } printf("Total: %g%s\n",int(total*10)/10,pref[y]); }'


Quick Access to heavily used file paths

ll /var/cpanel/user_notifications/root/history
/var/cpanel/updatelogs
/usr/local/cpanel/logs/cpbackup
csf cron is in /etc/cron.d/csf-update
/etc/apache2/conf.d/whitelist.conf
/scripts/updateuserdatacache
/usr/local/cpanel/bin/resetcaches