The Operating System Boot Process
The Linux terminal can seem intimidating at first, but it is a powerful tool that gives you full control over your system.
The terminal is a command-line interface (CLI) that allows users to interact directly with the operating system using text commands.
While graphical user interfaces (GUIs) are user-friendly, the terminal is faster and more powerful for many tasks.
Here are some of the most commonly used Linux commands, grouped by purpose :
|
Description | Example | |
|---|---|---|---|
| ls | Lists files and folders | ls -l | |
| cd | Changes directory | cd /home/user/Documents | |
| pwd | Shows current directory | ||
| mkdir | Creates a new folder | mkdir projects | |
| rm | Removes files or directories | rm file.txt, rm -r folder | |
| cp | Copies files or directories | cp file1.txt file2.txt | |
| mv | Moves or renames files | mv old.txt new.txt |
| Command | Description | Example |
|---|---|---|
| cat | Displays file content | cat readme.txt |
| less | Views file content with scroll support | less bigfile.txt |
| nano | Simple text editor (user-friendly) | nano config.txt |
| vi or vim | Powerful terminal-based editor | vim notes.txt |
| Command | Description | Example |
|---|---|---|
| whoami | Displays current user | |
| sudo | Runs a command as root | sudo apt update |
| chmod | Changes file permissions | chmod +x script.sh |
| chown | Changes file owner | sudo chown user file.txt |
| Command | Description |
|---|---|
| top | Shows real-time system processes |
| df -h | Displays disk space usage |
| free -h | Shows memory usage |
| uname -a | Shows system information |
| uptime | Shows how long system has been running |
| Command | Description | Example |
|---|---|---|
| apt update | Updates package lists | sudo apt update |
| apt upgrade | Upgrades installed packages | sudo apt upgrade |
| apt install | Installs new software | sudo apt install firefox |
| apt remove | Uninstalls software | sudo apt remove gimp |
Tab Auto-Completion : Press Tab to
auto-complete file or folder names.
Arrow Keys : Use ↑ and ↓ to cycle through command history.
Clear Screen : Use
clear or press
Ctrl + L.
Cancel Command :
Press Ctrl + C to stop a
running command.
Learning the Linux terminal is one of the best ways to improve your productivity and system understanding.
Start with these basic commands and practice regularly to gain confidence and unlock the full power of Linux.