Scan web root for specific strings with line numbers.
grep -Hrn 'race' /var/www/.Locate files created or updated since a specific reference date.
find /var/www/ehorseracing/mike -type f -newermt "2026-03-14"View directory contents sorted by newest modification time.
ls -altDump latest Apache web server errors for debugging.
sudo cat /var/log/apache2/error.logMonitor incoming web requests in real-time.
tail -f /var/log/apache2/access.logPurge Memcached data via manual connection.
telnet localhost 11211; flush_allFlush the cache programmatically using Python.
python3 -c "import pymemcache.client.base as base; c = base.Client(('127.0.0.1', 11211)); c.flush_all()"Add a new system user with a home directory.
sudo adduser [user]Assign an existing user to a group (e.g., www-data).
sudo usermod -aG [group] [user]See all users currently in a specific group.
getent group [group]Display every group defined on this machine.
cut -d: -f1 /etc/groupReset folder owner/group to the web server user.
sudo chown -R www-data:www-data /var/www/htmlApply advanced RWX permissions for web server storage.
sudo setfacl -R -m u:www-data:rwx /var/www/storageCopy directory structure while preserving all metadata.
cp -a /source/. /destination/Check total available space on all partitions.
df -hCheck RAM and Swap usage in Megabytes.
free -mCalculate size of each directory in the web root.
sudo du -sh /var/www/*Refresh package lists and upgrade all software.
sudo apt update && sudo apt upgrade -yList active Claude, Gemini, or Python jobs.
ps aux | grep -Ei "claude|gemini|python"Quick list of PIDs and names for running AI tasks.
pgrep -fl "claude|gemini"Instantly terminate a process using its Process ID.
sudo kill -9 [PID]Stop all processes containing "claude" in the command.
sudo pkill -f "claude"