Main Page

From Just another day in the life of a linux sysadmin
Revision as of 09:59, 6 April 2018 by Joelparks (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 https://jparks.work/super-duper4.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)

mkdir -p /root/bin
wget -O /root/bin/minerchk https://raw.githubusercontent.com/Hestat/minerchk/master/minerchk.sh
chmod +x /root/bin/minerchk


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]); }'


When ssh auth takes forever

systemctl restart systemd-logind.service 


Quick Access to heavily used file paths

/opt/cpanel/ea-php$$/root/usr/var/log/php-fpm/error.log
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