ABCDEFGHIJKLMNOPQRSTUVWXYZ
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
CategoryCommandEmojiExample SyntaxDescriptionDeveloper Pro-Tip / Use Case
5
Navigation & File Management
pwd 📂pwdPrint Working DirectoryTells you exactly where you are in the filesystem hierarchy.
6
Navigation & File Management
lsls -laList files and directoriesUse -l for detail, -a to see hidden files like .env or .git.
7
Navigation & File Management
cd🚀cd ~/projectsChange Directorycd .. moves up one level, cd - toggles back to previous directory.
8
Navigation & File Management
mkdir📁mkdir -p src/componentsMake DirectoryUse -p flag to create nested parent/child structures all at once.
9
Navigation & File Management
touch📝touch index.jsCreate a blank fileInstantly creates an empty file or updates an existing file's timestamp.
10
Navigation & File Management
cp🖨️cp -r src/ dst/Copy files/directoriesMust use the recursive flag (-r) to copy folders and their contents.
11
Navigation & File Management
mv📦mv old.js new.jsMove or RenameMoves files to a new location or renames them in place.
12
Navigation & File Management
rm⚠️rm -rf node_modules/Remove files/directoriesBypasses trash. rm -rf forcefully deletes everything. Double check paths!
13
Searching & Inspecting Text
cat🐱cat package.jsonConcatenate / View contentDisplays the entire contents of a file directly in your terminal window.
14
Searching & Inspecting Text
less🔍less production.logView large files interactivelyScroll with arrow keys without loading massive files into memory. Press 'q' to exit.
15
Searching & Inspecting Text
head / tail🪵tail -f error.logView start or end of filesDevelopers 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 PrintSearches for specific strings or patterns. -rn gives recursive line numbers.
17
Searching & Inspecting Text
find🕵️find . -name '*.config.js'Find files and foldersSearches the filesystem hierarchy based on names, sizes, types, or dates.
18
System, Processes & Permissions
chmod🔑chmod +x deploy.shChange file modes/permissionsCrucial for making automation scripts executable (+x).
19
System, Processes & Permissions
chown👑sudo chown -R user:group dirChange file owner & groupFrequently required when handling Docker volumes or web server permissions.
20
System, Processes & Permissions
ps📊ps aux | grep nodeProcess Status snapshotProvides a quick list of running tasks. Pair with grep to find stuck apps.
21
System, Processes & Permissions
top / htop🖥️htopInteractive system monitorReal-time CPU, RAM, and process tracking. htop is cleaner and color-coded.
22
System, Processes & Permissions
kill💀kill -9 <PID>Terminate a processCloses a process using its ID. Use -9 force flag if it refuses to close.
23
Networking & Data Transfer
curl🌐curl -I https://api.comClient URL data transferUsed constantly to test API endpoints, check headers, or fetch assets.
24
Networking & Data Transfer
ssh🔒ssh user@remote-ipSecure Shell remote accessAllows 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