0% found this document useful (0 votes)
5 views11 pages

02 Linux Command Line Cheat Sheet

This document is a Linux Command Line Cheat Sheet designed for developers, providing essential commands for daily tasks. It covers core navigation, file management, searching, permissions, processes, networking, and archiving, along with safety tips. The cheat sheet includes concise examples and a one-page command table for quick reference.

Uploaded by

imam045
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views11 pages

02 Linux Command Line Cheat Sheet

This document is a Linux Command Line Cheat Sheet designed for developers, providing essential commands for daily tasks. It covers core navigation, file management, searching, permissions, processes, networking, and archiving, along with safety tips. The cheat sheet includes concise examples and a one-page command table for quick reference.

Uploaded by

imam045
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Linux Command Line Cheat Sheet

Essential commands for daily developer work.

Version 1.0 • Generated on 2026-03-05

This mini■guide is designed to be fast to read and easy to reference. It focuses on practical fundamentals
and concise examples.
1) How to Read This Cheat Sheet
This cheat sheet focuses on commands used daily by developers. Examples assume a bash■like shell on
Linux or macOS.

• Use ↑ to recall previous commands

• Use Tab for auto■completion

• Use Ctrl+C to stop a running process


2) Core Navigation
Navigating directories is the foundation of CLI work. Combine ls flags to tailor output.

pwd
ls
ls -lah
cd /path/to/project
cd ..
3) File & Directory Management
mkdir -p logs/archive
touch [Link]
cp [Link] [Link]
mv [Link] archive/[Link]
rm -i archive/[Link]
4) Search & Inspect
grep searches content; find searches names/paths. Combine with pipes (|) to chain commands.

grep -R "ERROR" .
find . -name "*.json"
cat [Link]
less [Link]
tail -f [Link]
5) Permissions Essentials
Permissions are expressed as rwx for user/group/others. 644 is common for files; 755 for executables.

chmod 644 [Link]


chmod 755 [Link]
chown user:group [Link]
6) Processes & Services
ps aux | grep node
top
kill -9 <PID>
systemctl status nginx
7) Networking Basics
curl -I [Link]
ping -c 3 [Link]
ss -tulpn
netstat -tulpn
8) Archives & Compression
tar -czf [Link] folder/
tar -xzf [Link]
zip -r [Link] folder/
unzip [Link]
9) One■Page Command Table
Use this table as a quick lookup.

Category Command Example Purpose

Navigation pwd pwd Print current directory

Navigation ls ls -lah List files (long, all, human sizes)

Navigation cd cd /var/log Change directory

Files cp cp [Link] [Link] Copy files

Files mv mv old new Move/rename

Files rm rm -rf dir Remove files/dirs (careful)

Files mkdir mkdir -p a/b Create directories

Search grep grep -R "todo" . Search text

Search find find . -name "*.log" Find by name

Permissions chmod chmod 644 file Change mode

Permissions chown chown user:group file Change owner

Processes ps ps aux | grep node List processes

Processes top top Live process viewer

Network curl curl -I [Link] HTTP requests

Network ss ss -tulpn List listening ports

Archives tar tar -czf [Link] dir Create [Link]

Git git git status Version control


10) Safety Tips
• Be careful with rm -rf (double check the path)

• Prefer rm -i for interactive deletes

• Use sudo only when required; understand what it changes

• Log commands used in production for reproducibility

You might also like