| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | ⚡ The 20 Most Essential Linux Commands Every Developer Should Memorize ⚡ | |||||||||||||||||||||||||
2 | 💡 Pro-Tip: Chain commands together using the Pipe operator (|) to supercharge your terminal workflow! | |||||||||||||||||||||||||
3 | ||||||||||||||||||||||||||
4 | Category | Command | Emoji | Example Syntax | Description | Developer Pro-Tip / Use Case | ||||||||||||||||||||
5 | Navigation & File Management | pwd | 📂 | pwd | Print Working Directory | Tells you exactly where you are in the filesystem hierarchy. | ||||||||||||||||||||
6 | Navigation & File Management | ls | ✨ | ls -la | List files and directories | Use -l for detail, -a to see hidden files like .env or .git. | ||||||||||||||||||||
7 | Navigation & File Management | cd | 🚀 | cd ~/projects | Change Directory | cd .. moves up one level, cd - toggles back to previous directory. | ||||||||||||||||||||
8 | Navigation & File Management | mkdir | 📁 | mkdir -p src/components | Make Directory | Use -p flag to create nested parent/child structures all at once. | ||||||||||||||||||||
9 | Navigation & File Management | touch | 📝 | touch index.js | Create a blank file | Instantly creates an empty file or updates an existing file's timestamp. | ||||||||||||||||||||
10 | Navigation & File Management | cp | 🖨️ | cp -r src/ dst/ | Copy files/directories | Must use the recursive flag (-r) to copy folders and their contents. | ||||||||||||||||||||
11 | Navigation & File Management | mv | 📦 | mv old.js new.js | Move or Rename | Moves files to a new location or renames them in place. | ||||||||||||||||||||
12 | Navigation & File Management | rm | ⚠️ | rm -rf node_modules/ | Remove files/directories | Bypasses trash. rm -rf forcefully deletes everything. Double check paths! | ||||||||||||||||||||
13 | Searching & Inspecting Text | cat | 🐱 | cat package.json | Concatenate / View content | Displays the entire contents of a file directly in your terminal window. | ||||||||||||||||||||
14 | Searching & Inspecting Text | less | 🔍 | less production.log | View large files interactively | Scroll with arrow keys without loading massive files into memory. Press 'q' to exit. | ||||||||||||||||||||
15 | Searching & Inspecting Text | head / tail | 🪵 | tail -f error.log | View start or end of files | Developers heavily rely on tail -f to stream live app/error logs as they happen. | ||||||||||||||||||||
16 | Searching & Inspecting Text | grep | 🎯 | grep -rn 'TODO' ./src/ | Global Regular Expression Print | Searches for specific strings or patterns. -rn gives recursive line numbers. | ||||||||||||||||||||
17 | Searching & Inspecting Text | find | 🕵️ | find . -name '*.config.js' | Find files and folders | Searches the filesystem hierarchy based on names, sizes, types, or dates. | ||||||||||||||||||||
18 | System, Processes & Permissions | chmod | 🔑 | chmod +x deploy.sh | Change file modes/permissions | Crucial for making automation scripts executable (+x). | ||||||||||||||||||||
19 | System, Processes & Permissions | chown | 👑 | sudo chown -R user:group dir | Change file owner & group | Frequently required when handling Docker volumes or web server permissions. | ||||||||||||||||||||
20 | System, Processes & Permissions | ps | 📊 | ps aux | grep node | Process Status snapshot | Provides a quick list of running tasks. Pair with grep to find stuck apps. | ||||||||||||||||||||
21 | System, Processes & Permissions | top / htop | 🖥️ | htop | Interactive system monitor | Real-time CPU, RAM, and process tracking. htop is cleaner and color-coded. | ||||||||||||||||||||
22 | System, Processes & Permissions | kill | 💀 | kill -9 <PID> | Terminate a process | Closes a process using its ID. Use -9 force flag if it refuses to close. | ||||||||||||||||||||
23 | Networking & Data Transfer | curl | 🌐 | curl -I https://api.com | Client URL data transfer | Used constantly to test API endpoints, check headers, or fetch assets. | ||||||||||||||||||||
24 | Networking & Data Transfer | ssh | 🔒 | ssh user@remote-ip | Secure Shell remote access | Allows you to securely connect to and control a remote Linux server / VPS. | ||||||||||||||||||||
25 | ||||||||||||||||||||||||||
26 | ||||||||||||||||||||||||||
27 | ||||||||||||||||||||||||||
28 | ||||||||||||||||||||||||||
29 | ||||||||||||||||||||||||||
30 | ||||||||||||||||||||||||||
31 | ||||||||||||||||||||||||||
32 | ||||||||||||||||||||||||||
33 | ||||||||||||||||||||||||||
34 | ||||||||||||||||||||||||||
35 | ||||||||||||||||||||||||||
36 | ||||||||||||||||||||||||||
37 | ||||||||||||||||||||||||||
38 | ||||||||||||||||||||||||||
39 | ||||||||||||||||||||||||||
40 | ||||||||||||||||||||||||||
41 | ||||||||||||||||||||||||||
42 | ||||||||||||||||||||||||||
43 | ||||||||||||||||||||||||||
44 | ||||||||||||||||||||||||||
45 | ||||||||||||||||||||||||||
46 | ||||||||||||||||||||||||||
47 | ||||||||||||||||||||||||||
48 | ||||||||||||||||||||||||||
49 | ||||||||||||||||||||||||||
50 | ||||||||||||||||||||||||||
51 | ||||||||||||||||||||||||||
52 | ||||||||||||||||||||||||||
53 | ||||||||||||||||||||||||||
54 | ||||||||||||||||||||||||||
55 | ||||||||||||||||||||||||||
56 | ||||||||||||||||||||||||||
57 | ||||||||||||||||||||||||||
58 | ||||||||||||||||||||||||||
59 | ||||||||||||||||||||||||||
60 | ||||||||||||||||||||||||||
61 | ||||||||||||||||||||||||||
62 | ||||||||||||||||||||||||||
63 | ||||||||||||||||||||||||||
64 | ||||||||||||||||||||||||||
65 | ||||||||||||||||||||||||||
66 | ||||||||||||||||||||||||||
67 | ||||||||||||||||||||||||||
68 | ||||||||||||||||||||||||||
69 | ||||||||||||||||||||||||||
70 | ||||||||||||||||||||||||||
71 | ||||||||||||||||||||||||||
72 | ||||||||||||||||||||||||||
73 | ||||||||||||||||||||||||||
74 | ||||||||||||||||||||||||||
75 | ||||||||||||||||||||||||||
76 | ||||||||||||||||||||||||||
77 | ||||||||||||||||||||||||||
78 | ||||||||||||||||||||||||||
79 | ||||||||||||||||||||||||||
80 | ||||||||||||||||||||||||||
81 | ||||||||||||||||||||||||||
82 | ||||||||||||||||||||||||||
83 | ||||||||||||||||||||||||||
84 | ||||||||||||||||||||||||||
85 | ||||||||||||||||||||||||||
86 | ||||||||||||||||||||||||||
87 | ||||||||||||||||||||||||||
88 | ||||||||||||||||||||||||||
89 | ||||||||||||||||||||||||||
90 | ||||||||||||||||||||||||||
91 | ||||||||||||||||||||||||||
92 | ||||||||||||||||||||||||||
93 | ||||||||||||||||||||||||||
94 | ||||||||||||||||||||||||||
95 | ||||||||||||||||||||||||||
96 | ||||||||||||||||||||||||||
97 | ||||||||||||||||||||||||||
98 | ||||||||||||||||||||||||||
99 | ||||||||||||||||||||||||||
100 | ||||||||||||||||||||||||||