You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Command
Description
ls
List files and directories
cd
Change directory
pwd
Show current directory
tree
Show directory tree
cp
Copy files/directories
mv
Move or rename files
📄 File Viewing & Editing
Command
Description
cat
View file contents
less
Paginated file viewer
more
Basic file viewer
head
Show first lines
tail
Show last lines
watch
Run command repeatedly
nano
Simple text editor
vim / vi
Advanced text editor
🔍 Search & Text Processing
Command
Description
find
Search files
locate
Fast file search
grep
Search text
awk
Pattern scanning
sed
Stream editor
cut
Extract columns
sort
Sort text
uniq
Remove duplicates
wc
Word/line count
🧠 Process & System Monitoring
Command
Description
ps
Show processes
top
Live process list
htop
Enhanced process viewer
btop
Enhanced process viewer
uptime
System run time
free
Memory usage
df
Disk usage
du
Directory size
kill
Stop a process
killall
Kill by name
systemd-analyze
Analyze boot performance
systemd-analyze blame
Analyze boot performance ordered by the time they took to initialise
🌐 Networking
Command
Description
ip a
Network interfaces
ip r
Routing table
ping
Test connectivity
ss
Socket statistics
curl
HTTP requests
wget
Download files
scp
Secure copy
ssh
Remote login
nc
Netcat
📦 Package Management
Debian / Ubuntu (APT)
Command
Description
apt update
Update package list
apt upgrade
Upgrade packages
apt install
Install package
apt remove
Remove package
Fedora / RHEL (DNF)
Command
Description
dnf install
Install package
dnf update
Update packages
dnf remove
Remove package
Command
Description
pacman -Syu
Update system
pacman -S
Install a package
pacman -R
Remove a package
pacman -Rs
Remove package and unneeded dependencies
pacman -Rns
Remove package, unneeded dependencies, and config files