Created
July 6, 2020 00:18
-
-
Save bhowe/b1171ad31aa541d2882119eeb9aaac10 to your computer and use it in GitHub Desktop.
common-server-commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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