Linux Essential Commands
Essential Linux command-line reference for file operations, system management, and everyday tasks
Table of Contents
File & Directory Operations
ls - List Files
List directory contents with various formatting options
cd - Change Directory
Navigate between directories in the filesystem
cp - Copy Files
Copy files and directories with options for recursive and interactive copying
mv - Move/Rename Files
Move or rename files and directories
rm - Remove Files
Delete files and directories (use with caution)
mkdir - Create Directories
Create new directories with support for nested paths
touch - Create/Update Files
Create empty files or update timestamps
File Viewing & Editing
cat - View Files
Display file contents, concatenate files, or create new files
less - Paginated Viewing
View files one screen at a time with navigation
head & tail - View File Parts
View the beginning or end of files
nano - Simple Text Editor
User-friendly terminal text editor for beginners
vim - Advanced Text Editor
Powerful modal text editor with steep learning curve
File Permissions & Ownership
chmod - Change Permissions
Modify file and directory access permissions
chown - Change Ownership
Change file owner and group
chgrp - Change Group
Change group ownership of files
Process Management
ps - View Processes
Display currently running processes
top - Live Process Monitor
Real-time view of system processes and resource usage
kill - Terminate Processes
Send signals to processes to stop them
Background Jobs
Run processes in background and manage jobs
System Information
System Overview
Display system information and kernel details
Disk Usage
Check disk space and directory sizes
Memory Usage
View RAM and swap memory usage
System Uptime & Load
Check how long system has been running and load average
Networking
ping - Test Connectivity
Check network connectivity to a host
curl - Transfer Data
Make HTTP requests and download files from command line
wget - Download Files
Download files from the web with resume capability
SSH - Remote Access
Securely connect to remote servers
scp - Secure Copy
Copy files between local and remote machines via SSH
Network Information
View network interfaces, connections, and routing
Search & Find
find - Search Files
Search for files and directories by name, type, size, and more
grep - Search File Contents
Search for patterns in file contents
locate - Fast File Search
Quickly find files by name using pre-built database
which & whereis - Find Commands
Locate executable commands and their paths
Compression & Archives
tar - Archive Files
Create and extract tar archives (tape archives)
gzip - Compress Files
Compress and decompress files with gzip
zip & unzip - Zip Archives
Create and extract zip archives (cross-platform)