Command Reference

86+ commands with syntax, options, and practical examples. Search or browse by category.

Showing 86 of 86 commands

ls

List directory contents

File System NavigationFile Management
cd

Change directory

File System Navigation
pwd

Print working directory name

File System Navigation
cp

Copy files and directories

File ManagementFile System Navigation
mv

Move or rename files and directories

File ManagementFile System Navigation
mkdir

Make directories

File SystemDirectory Management
rm

Remove files or directories

File Management
rmdir

Remove empty directories

File Management
touch

Change file timestamps or create empty files

File Management
cat

Concatenate and display file content

File ContentUtilities
grep

Print lines matching a pattern

File ContentSearching
find

Search for files in a directory hierarchy

File System NavigationSearching
less

Opposite of more; view file content paginated

File ContentText Processing
head

Output the first part of files

File ContentText Processing
tail

Output the last part of files

File ContentText Processing
awk

Pattern scanning and processing language

Text ProcessingFile Content
sed

Stream editor for filtering and transforming text

Text ProcessingFile Content
sort

Sort lines of text files

Text ProcessingFile Content
uniq

Report or omit repeated lines

Text ProcessingFile Content
wc

Print newline, word, and byte counts for each file

Text ProcessingFile Content
diff

Compare files line by line

File ContentText Processing
chmod

Change file mode bits (permissions)

File ManagementPermissions
chown

Change file owner and group

File ManagementPermissions
sudo

Execute a command as another user (superuser)

User ManagementPermissions
useradd

Create a new user or update default new user information

User ManagementSystem Administration
usermod

Modify a user account

User ManagementAdministration
userdel

Delete a user account and related files

User ManagementAdministration
passwd

Update user`s authentication tokens (passwords)

User ManagementSecurity
groupadd

Create a new group

User ManagementAdministration
groupmod

Modify a group definition on the system

User ManagementAdministration
groups

Print the groups a user is in

User ManagementSystem Information
id

Print real and effective user and group IDs

User ManagementSystem Information
ps

Report a snapshot of current processes

Process ManagementSystem Monitoring
top

Display Linux processes (dynamic)

Process ManagementSystem Monitoring
df

Report file system disk space usage

System InformationDisk Management
du

Estimate file space usage

System InformationDisk Management
free

Display amount of free and used memory in the system

System InformationMonitoring
date

Print or set the system date and time

System InformationUtilities
uname

Print system information

System InformationUtilities
uptime

Tell how long the system has been running

System InformationMonitoring
who

Show who is logged on

System InformationUser Management
ping

Send ICMP ECHO_REQUEST to network hosts

NetworkingTroubleshooting
ip

Show / manipulate routing, network devices, interfaces

NetworkingConfiguration
ssh

OpenSSH SSH client (remote login program)

NetworkingRemote Access
scp

Secure copy (remote file copy program)

NetworkingFile Transfer
wget

The non-interactive network downloader

NetworkingFile Transfer
curl

Transfer data from or to a server

NetworkingFile Transfer
ss

Another utility to investigate sockets

NetworkingMonitoring
apt

Package handling utility (Debian/Ubuntu)

Package ManagementSoftware Installation
tar

GNU `tar` saves many files together into a single tape or disk archive, and can restore individual files from the archive.

ArchivingCompression
gzip

Compress or expand files

ArchivingCompression
gunzip

Decompress files compressed by gzip

ArchivingCompression
kill

Send a signal to a process

Process ManagementSystem Administration
pkill

Signal processes based on name and other attributes

Process ManagementAdministration
killall

Kill processes by name

Process ManagementAdministration
jobs

List active jobs

Job ControlShell Utilities
history

Display command history

Shell UtilitiesCommand History
fg

Bring a job to the foreground

Job ControlShell Utilities
bg

Send a job to the background

Job ControlShell Utilities
shutdown

Shut down or reboot the system

System AdministrationSystem Utilities
reboot

Reboot the system

System AdministrationSystem Utilities
halt

Halt the system

System AdministrationSystem Utilities
poweroff

Power off the system

System AdministrationSystem Utilities
man

Format and display the on-line manual pages

HelpDocumentation
info

Read Info documents

HelpDocumentation
alias

Create an alias for a command

Shell UtilitiesCustomization
unalias

Remove an alias

Shell UtilitiesCustomization
echo

Display a line of text

Shell UtilitiesScripting
printf

Format and print data

Shell UtilitiesScripting
sleep

Delay for a specified amount of time

Shell UtilitiesScripting
read

Read a line from standard input

Shell UtilitiesScripting
true

Do nothing, successfully (exit with 0)

Shell UtilitiesScripting
false

Do nothing, unsuccessfully (exit with 1)

Shell UtilitiesScripting
tee

Read from standard input and write to standard output and files

Shell UtilitiesText Processing
apt update

Refresh available package information from configured sources.

Package ManagementSystem Administration
apt upgrade

Upgrade installed packages to their newest versions.

Package ManagementSystem Administration
apt install

Install new packages.

Package ManagementSystem Administration
apt remove

Remove packages.

Package ManagementSystem Administration
apt search

Search for a package by name or description.

Package ManagementSystem Administration
systemctl

Control the systemd system and service manager

System AdministrationService Management
journalctl

Query the systemd journal (logs)

System AdministrationLogging
iptables

Administration tool for IPv4 packet filtering and NAT

NetworkingSecurity
nft

Administration tool for nftables (successor to iptables)

NetworkingSecurity
ufw

Uncomplicated Firewall - frontend for iptables

NetworkingSecurity
htop

Interactive process viewer and system monitor

System InformationProcess Management
lsof

List open files and the processes that opened them

System InformationNetworking

All Categories

We use cookies to enhance your experience. Learn more