File & Directory Management #
- ls — List directory contents
- cd — Change directory
- pwd — Print current working directory
- mkdir — Create a new directory
- rmdir — Remove an empty directory
- rm — Remove files or directories
- cp — Copy files or directories
- mv — Move or rename files and directories
- touch — Create empty files or update timestamps
- tree — Display directories and files in a tree-like format
Viewing & Editing Files #
- cat — Concatenate and display file contents
- less — View file content one screen at a time
- more — Similar to
less
, but older - head — Show the first lines of a file
- tail — Show the last lines of a file (with
-f
to follow logs) - nano — Simple terminal text editor
- vi / vim — Advanced terminal text editor
- emacs — Another powerful text editor
- file — Identify file type
- strings — Extract readable text from binary files
File Search & Location #
- find — Search for files by name, size, time, etc.
- locate — Quickly find files via an indexed database
- which — Show the full path of a command
- whereis — Locate binary, source, and man page for a command
- grep — Search text using patterns (regex-capable)
System Monitoring & Processes #
- ps — Show running processes
- top — Dynamic real-time process viewer
- htop — Improved interactive process viewer
- kill — Send a signal to a process
- killall — Kill processes by name
- jobs — List background jobs
- bg — Resume a job in the background
- fg — Bring a background job to the foreground
- uptime — Show system uptime and load averages
- dmesg — Print kernel ring buffer messages
Disk & Storage #
- df — Show disk usage by filesystem
- du — Show disk space usage of files/directories
- mount — Mount a filesystem or device
- umount — Unmount a filesystem or device
- lsblk — List information about block devices
Networking #
- ping — Test connectivity to a host
- curl — Transfer data from/to a server
- wget — Download files from the web
- ssh — Connect securely to another machine
- scp — Securely copy files between machines
- rsync — Efficiently sync files between locations
- netstat / ss — Show network connections and sockets
- traceroute — Show the path packets take to a host
- ip — Show or manipulate network interfaces and routes
- ifconfig — (Older) view/set network interface configuration
Contact #
- Email: jcb.a.stwsk@gmail.com
- XMPP: blural
- X: @jcbstwsk
last updated: