This Linux commands list covers the most essential commands every user should know. Discover 120 essential Linux commands for system administrators with examples and explanations. Updated for Ubuntu, Debian, and modern Linux systems.
Linux Commands List for Beginners

This Linux commands list includes the most useful commands for everyday use.
File & Directory Management
pwd
Prints the current working directory.
pwd
ls
Lists directory contents.
ls
ls -la
cd
Changes directory.
cd /var/www
cd ..
mkdir
Creates a new directory.
mkdir new-folder
rm
Removes files or directories.
rm file.txt
rm -rf folder/
File Operations
touch
Creates an empty file.
touch file.txt
cp
Copies files.
cp file.txt backup.txt
mv
Moves or renames files.
mv file.txt new.txt
Viewing Files
cat
Displays file content.
cat file.txt
less
View large files interactively.
less file.txt
tail
Shows last lines.
tail -f /var/log/syslog
Search & Text Processing
grep
Search for patterns.
grep "error" log.txt
find
Locate files.
find / -name "*.conf"
awk
Text processing tool.
awk '{print $1}' file.txt
sed
Stream editor.
sed 's/old/new/g' file.txt
System Monitoring
top
Real-time processes.
top
htop
Enhanced process viewer.
htop
uptime
System uptime and load.
uptime
free
Memory usage.
free -h
Networking
ip
Shows network interfaces.
ip a
ping
Test connectivity.
ping google.com
ss
Modern replacement for netstat.
ss -tuln
curl
HTTP requests.
curl https://example.com
NETWORK (ADVANCED)
wget
Download files.
wget https://example.com/file.zip
dig
DNS lookup.
dig google.com
host
DNS query.
host google.com
traceroute
Trace network route.
traceroute google.com
nc (netcat)
Network tool.
nc -zv localhost 80
Package Management (Debian/Ubuntu)
apt update
Updates package list.
sudo apt update
apt upgrade
Upgrades packages.
sudo apt upgrade
apt install
Installs package.
sudo apt install nginx
Permissions & Users
chmod
Change permissions.
chmod 755 script.sh
chown
User identity.
chown user:user file.txt
id
Prints the current working directory.
id
Disk & Storage
df
Disk usage.
du -sh folder/
du
Directory size.
pwd
lsblk
Block devices.
lsblk
Advanced Linux commands list
tar
Archive files.
tar -czf archive.tar.gz folder/
scp
Secure copy.
scp file.txt user@server:/home/
ssh
Remote login.
ssh user@server
System Information Commands
uptime
Shows how long the system has been running.
uptime
uname
Displays system information.
uname -a
hostname
Shows or sets system hostname.
hostname
who
Shows logged-in users.
who
w
Displays active users and processes.
w
date
Shows current date and time.
date
cal
Displays a calendar.
cal
env
Shows environment variables.
env
export
Sets environment variable.
export VAR=value
echo
Prints text or variables.
echo "Hello"
sleep
Pauses execution.
sleep 5
reboot
Restarts the system.
sudo reboot
shutdown
Shuts down system.
sudo shutdown now
clear
Clears terminal.
clear
history
Shows command history.
history
alias
Creates command shortcut.
alias ll='ls -la'
unalias
Removes alias.
unalias ll
time
Measures command execution time.
time ls
watch
Runs command repeatedly.
watch -n 1 date
yes
Outputs text repeatedly.
yes
User & Permissions Management
useradd
Creates a new user.
sudo useradd username
usermod
Modifies a user account.
sudo usermod -aG sudo username
passwd
Changes user password.
passwd
su
Switch user.
su username
sudo
Run command as root.
sudo apt update
groups
Shows user groups.
groups
PERMISSIONS
chmod +x
Makes file executable.
chmod +x script.sh
umask
Sets default permissions.
umask 022
PACKAGE MANAGEMENT (ADVANCED)
apt-cache
Search package info.
apt-cache search nginx
dpkg
Install .deb package.
sudo dpkg -i package.deb
dpkg -l
List installed packages.
dpkg -l
add-apt-repository
Adds repository.
sudo add-apt-repository ppa:example/ppa
DISK & FILESYSTEM
mount
Mount filesystem.
mount /dev/sdb1 /mnt
umount
Unmount filesystem.
umount /mnt
fdisk
Partition disk.
sudo fdisk -l
mkfs
Create filesystem.
mkfs.ext4 /dev/sdb1
blkid
Show disk UUID.
blkid
PROCESS MANAGEMENT
killall
Kill process by name.
killall nginx
nice
Run process with priority.
nice -n 10 command
renice
Change process priority.
renice 10 -p 1234
jobs
List background jobs.
jobs
bg
Resume job in background.
bg %1
fg
Bring job to foreground.
fg %1
ARCHIVE & COMPRESSION
zip
Compress files.
zip archive.zip file.txt
unzip
Extract zip.
unzip archive.zip
gzip
Compress file.
gzip file.txt
gunzip
Decompress file.
gunzip file.txt.gz
SYSTEMD Linux commands list
systemctl start
Start service.
sudo systemctl start nginx
systemctl stop
Stop service.
sudo systemctl stop nginx
systemctl restart
Restart service.
sudo systemctl restart nginx
systemctl status
Check service status.
systemctl status nginx
systemctl enable
Enable service on boot.
sudo systemctl enable nginx
LOGS Linux commands list
journalctl
View logs.
journalctl
journalctl -xe
Detailed logs.
journalctl -xe
Advanced Linux & Power User Commands
xargs
Builds argument list from input.
xargs
tee
Outputs to file and stdout.
echo "test" | tee file.txt
watch df
Monitor disk usage in real time.
watch df -h
watch free
Monitor memory usage.
watch free -h
lsof
Lists open files.
lsof
strace
Trace system calls.
strace ls
dmesg
Shows kernel messages.
dmesg
lsusb
List USB devices.
lsusb
lspci
List PCI devices.
lspci
uptime -p
Pretty uptime format.
uptime -p
hostnamectl
Manage hostname.
hostnamectl
timedatectl
Manage system time.
timedatectl
hwinfo
Hardware info.
hwinfo
free -m
Memory in MB.
free -m
vmstat
System performance.
vmstat
iostat
CPU and disk stats.
iostat
mpstat
CPU usage per core.
mpstat
sar
System activity report.
sar
last
Login history.
last
lastlog
Last login per user.
lastlog
FILE & TEXT (ADVANCED)
cut
Extract columns.
cut -d ':' -f1 /etc/passwd
sort
Sort lines.
sort file.txt
uniq
Remove duplicates.
uniq file.txt
wc
Word/line count.
wc -l file.txt
paste
Merge lines.
paste file1 file2
join
Join files.
join file1 file2
tr
Translate characters.
tr 'a-z' 'A-Z' < file.txt
split
Split file.
split file.txt
SECURITY Linux commands list
chattr
Change file attributes.
chattr +i file.txt
lsattr
View file attributes.
lsattr
passwd -l
Lock user.
passwd -l username
passwd -u
Unlock user.
passwd -u username
NETWORK (EXTRA)
ss -s
Socket summary.
ss -s
curl -I
Fetch headers.
curl -I https://example.com
ping -c 4
Ping limited times.
ping -c 4 google.com
SYSTEM CONTROL
poweroff
Shutdown system.
sudo poweroff
exit
Exit shell.
exit
logout
Logout user.
logout
This Linux commands list is useful for both beginners and advanced users.
You can learn more about Linux commands in the official documentation.

[…] If you want to learn more, check out our full Linux commands list. […]