I am not liable for any broken screens as a result of waiting...

Useful Terminal Commands

02 February 2026
Senka Wolf
Author
Senka Wolf

Table of Contents


Useful Terminal Commands

Here I will list a bunch of useful commands to make a central place to search for them. They are mostly notes to help me remember them all in my Linux exploring journey.

File & Directory Management

CommandDescription
lsList files and directories
cdChange directory
pwdShow current directory
treeShow directory tree
cpCopy files/directories
mvMove or rename files

File Viewing & Editing

CommandDescription
catView file contents
lessPaginated file viewer
moreBasic file viewer
headShow first lines
tailShow last lines
watchRun command repeatedly
nanoSimple text editor
vim / viAdvanced text editor

Search & Text Processing

CommandDescription
findSearch files
locateFast file search
grepSearch text
awkPattern scanning
sedStream editor
cutExtract columns
sortSort text
uniqRemove duplicates
wcWord/line count

Process & System Monitoring

CommandDescription
psShow processes
topLive process list
htopEnhanced process viewer
btopEnhanced process viewer
uptimeSystem run time
freeMemory usage
dfDisk usage
duDirectory size
killStop a process
killallKill by name
systemd-analyzeAnalyze boot performance
systemd-analyze blameAnalyze boot performance ordered by the time they took to initialise

Networking

CommandDescription
ip aNetwork interfaces
ip rRouting table
pingTest connectivity
ssSocket statistics
curlHTTP requests
wgetDownload files
scpSecure copy
sshRemote login
ncNetcat

Package Management

Debian / Ubuntu (APT)

CommandDescription
apt updateUpdate package list
apt upgradeUpgrade packages
apt installInstall package
apt removeRemove package

Fedora / RHEL (DNF)

CommandDescription
dnf installInstall package
dnf updateUpdate packages
dnf removeRemove package

Arch (pacman / yay / paru)

CommandDescription
pacman -SyuUpdate system
pacman -SInstall a package
pacman -RRemove a package
pacman -RsRemove package and unneeded dependencies
pacman -RnsRemove package, unneeded dependencies, and config files
pacman -SsSearch packages
pacman -QiPackage information
pacman -QsSearch installed packages
pacman -ScClean package cache
yay -SyuUpdate system & AUR packages
yay -S <pkg>Install a package from repos or AUR
yay -R <pkg>Remove a package
yay -Ss <pkg>Search for a package
yay -Qi <pkg>Show package info
yay -Qs <pkg>Search installed packages
yay -ScClean package cache
paru -SyuUpdate system & AUR packages
paru -S <pkg>Install a package from repos or AUR
paru -R <pkg>Remove a package
paru -Ss <pkg>Search for a package
paru -Qi <pkg>Show package info
paru -Qs <pkg>Search installed packages
paru -ScClean package cache

openSUSE (Zypper)

CommandDescription
zypper refreshRefresh repositories
zypper updateUpdate packages
zypper installInstall a package
zypper removeRemove a package
zypper remove --clean-depsRemove package and unused dependencies
zypper searchSearch for a package
zypper infoPackage information
zypper reposList repositories

Disk & Hardware

CommandDescription
lsblkList block devices
mountMount filesystem
umountUnmount filesystem
blkidShow UUIDs
dmesgKernel messages

Logs & System Info

CommandDescription
journalctlView system logs
uname -aKernel info
hostnamectlHostname info
lsusbUSB devices
lspciPCI devices

Shell & Utilities

CommandDescription
historyCommand history
clearClear terminal
exitExit shell
stowManage dotfiles using GNU Stow

Version Control & Git

CommandDescription
git statusShow current repo status
git add --allStage all changes
git commit -m ""Commit staged changes
git pushPush commits to remote repository

3 min read
Share this post:
Back to Guides

Related Articles

All guides
Top