Essential Linux Commands Cheat Sheet for Beginners
09/05/2025 •
📘 Introduction – Essential Linux Commands Cheat Sheet
Linux is a powerful, open-source operating system widely used in servers, development environments, cloud infrastructure, cybersecurity, and more. Mastering basic Linux commands is essential for system administrators, developers, and IT professionals to manage files, processes, networks, and user permissions efficiently.
This cheat sheet provides a concise reference to essential Linux commands, grouped by functionality such as file management, networking, process control, and system monitoring. Whether you’re a beginner learning the command line or a professional needing a quick refresher, this guide aims to boost your productivity and command-line confidence.
Here’s a list of basic and important Linux operating system commands along with their uses. These are essential for beginners and system administrators alike:
🔹 1. File and Directory Management
Command
Use
ls
Lists files and directories in the current directory.
cd
Changes the current directory.
pwd
Prints the current working directory.
mkdir
Creates a new directory.
rmdir
Removes an empty directory.
rm
Removes files or directories (-r for recursive).
cp
Copies files or directories.
mv
Moves or renames files or directories.
touch
Creates a new empty file.
find
Searches for files and directories.
tree
Shows directory structure in a tree format (install needed).
🔹 2. File Viewing and Editing
Command
Use
cat
Displays the content of a file.
less / more
Views file content one page at a time.
head
Shows the first 10 lines of a file.
tail
Shows the last 10 lines (use -f to follow a live log).
nano
Opens a simple text editor.
vi or vim
Opens the powerful VI/Vim editor.
🔹 3. File Permissions and Ownership
Command
Use
chmod
Changes file permissions.
chown
Changes file ownership.
ls -l
Lists files with permissions and ownership.
umask
Displays or sets default permission mask.
🔹 4. Process Management
Command
Use
ps
Lists running processes.
top
Displays real-time processes.
htop
Interactive version of top (install needed).
kill
Sends a signal to a process (default: terminate).
killall
Kills processes by name.
nice / renice
Sets process priority.
🔹 5. Package Management
• Debian/Ubuntu (apt):
Command
Use
apt update
Updates the package list.
apt upgrade
Installs available updates.
apt install <pkg>
Installs a package.
apt remove <pkg>
Removes a package.
• RHEL/CentOS (yum or dnf):
Command
Use
yum install <pkg>
Installs a package.
yum remove <pkg>
Removes a package.
🔹 6. Networking
Command
Use
ip a or ifconfig
Shows network interfaces.
ping <host>
Checks connectivity.
netstat -tulnp
Lists listening ports (may need net-tools).
ss -tuln
Modern alternative to netstat.
curl <url>
Transfers data from/to a server.
wget <url>
Downloads files from the web.
nslookup / dig
DNS lookup tools.
🔹 7. Disk and Storage
Command
Use
df -h
Shows disk space usage.
du -sh <dir>
Shows disk usage of a directory.
mount / umount
Mounts or unmounts devices.
lsblk
Lists block devices.
fdisk -l
Lists partition tables.
🔹 8. User Management
Command
Use
adduser / useradd
Adds a new user.
passwd
Changes user password.
usermod
Modifies user info.
deluser / userdel
Deletes a user.
groups
Shows groups of a user.
🔹 9. System Monitoring
Command
Use
uptime
Shows how long the system has been running.
free -h
Shows memory usage.
vmstat
Reports system performance.
iostat
CPU and I/O stats (needs sysstat package).
dmesg
Shows system boot and kernel messages.
journalctl
Views system logs on systemd systems.
🔹 10. Miscellaneous
Command
Use
man <command>
Shows manual/help for a command.
history
Shows command history.
alias
Creates shortcut commands.
clear
Clears the terminal screen.
echo
Prints messages to the screen.
date
Displays current date/time.
whoami
Shows current user.
uname -a
Displays system information.
🧾 Summary
This document includes:
File and Directory Management: Commands to navigate, create, copy, move, and delete files and folders.
File Viewing and Editing: Tools to read or edit file content.
Permissions and Ownership: Managing access rights for files and users.
Process Management: Viewing and controlling system processes.
Package Management: Installing and removing software using package managers like apt and yum.
Networking Commands: Checking connectivity, downloading data, and troubleshooting networks.
Disk and Storage: Monitoring disk usage and managing devices.
User Management: Adding, modifying, or deleting users and groups.
System Monitoring: Commands for viewing system resource usage and logs.
Miscellaneous Tools: Useful utilities like man, alias, history, and system info tools.
This guide serves as a quick reference for day-to-day Linux operations and helps build a strong foundation in system usage and administration.
Essential Linux Commands Cheat Sheet for Beginners
This article provided insights on the topic. For latest updates and detailed guides, stay connected with Sanchit Gurukul.
Disclaimer: This article may contain information that was accurate at the time of writing but could be outdated now. Please verify details with the latest vendor advisories or contact us at admin@sanchitgurukul.com.