Linux Commands Cheat Sheet
Searchable reference for essential Linux commands — files, permissions, processes, networking, text tools and disk usage.
How to use this Linux cheat sheet
Search or filter by category to find the Linux command you need, then click the copy icon to grab it straight into your clipboard.
Most-used Linux commands
Day-to-day essentials include ls, cd, grep, chmod, ps aux, curl and tar.
Frequently Asked Questions
What is the difference between chmod 755 and chmod +x?
chmod 755 sets exact permissions (rwxr-xr-x) for owner, group and others, overwriting whatever was there before. chmod +x only adds execute permission for whoever already has read/write access, leaving other permission bits untouched.
How do I safely kill a stuck process?
First try kill <pid> (sends SIGTERM, allowing graceful shutdown). Only use kill -9 <pid> (SIGKILL) if the process ignores SIGTERM — it terminates immediately without cleanup, which can leave temp files or locks behind.