Skip to content

Instantly share code, notes, and snippets.

@bhowe
Created July 6, 2020 00:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhowe/b1171ad31aa541d2882119eeb9aaac10 to your computer and use it in GitHub Desktop.
Save bhowe/b1171ad31aa541d2882119eeb9aaac10 to your computer and use it in GitHub Desktop.
common-server-commands
crontab -e
tar xzf mastering.tar.gz
pwd
hostname
watch -n1 "du -sch forum"
yum install https://repo-latest.rpm
df -h
uptime
atop
php -i | grep php.ini
tail -1000 /var/log/messages
locate foo.com
service mysql status
service mysql restart
journalctl -xe
iptables-save | grep 103.214.235.222
service clamd status
fail2ban-client stop
last reboot
chmod +x /home/foo/cronjobs/whateverfile.php
getfacl /home/foo/cronjobs/whateverfile.php
service nrpe restart
service nrpe status
wget -N http://httpupdate.cPanel.net/latest
screen -S scan_malware_Nov20
screen -ls
systemctl status varnish
which varnishd
varnishd -V
systemctl enable varnish
netstat -alpn | egrep ":80|:443" | awk '{print $5}' | cut -d ":" -f1 | sort -n | uniq -c | sort -nstemctl start varnish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment