Back to Cheat SheetsTooling · Beginner
Linux cheat sheet
Shell commands for logs, processes, permissions and remote environments.
Files and logs
Tail a log
tail -f app.logSearch
grep -rn "NullPointer" logs/Find files
find . -name "*.xml" -mtime -1Disk usage
du -sh * | sort -hProcesses and network
Running processes
ps -ef | grep javaKill
kill -9 <pid>Port in use
lsof -i :8080Remote copy
scp report.html user@host:/tmp/Permissions
Change mode
chmod +x run.shOwnership
chown user:group fileGo beyond the reference
Book a free demo class and apply these commands on live project work.