Command Line Basics
Introduction to Linux Terminal
The Linux terminal is a powerful command line interface (CLI) that enables direct system interaction through text-based commands. Unlike graphical user interfaces, the terminal provides precise control and efficiency for system management and programming tasks.
Essential Terminal Components
Component |
Description |
Purpose |
Shell |
Command interpreter |
Processes user commands |
Prompt |
Input indicator |
Shows current system context |
Command |
Instruction |
Executes specific system operations |
Basic Command Structure
graph LR
A[Command] --> B[Options]
A --> C[Arguments]
Core Command Examples
1. Navigation Commands
## Print current directory
pwd
## List directory contents
ls -la
## Change directory
cd /home/user
2. File Management Commands
## Create directory
mkdir project_folder
## Create empty file
touch example.txt
## Copy files
cp source.txt destination.txt
## Move/rename files
mv oldname.txt newname.txt
## Display system information
uname -a
## Check disk usage
df -h
## View current user
whoami
Terminal Interaction Principles
Effective terminal usage requires understanding command syntax, options, and argument structures. Each command represents a specific action, with options modifying its behavior and arguments specifying targets.