Welcome to the Linux commands guide! Whether you're a beginner or looking to refine your skills, this tutorial will walk you through core Linux commands and their practical uses. Let's dive in!
📁 Common Commands by Categories
🔍 Basic System Information
uname -a
- Display all system information (e.g., kernel version, hostname)top
- Real-time monitoring of running processesdf -h
- Check disk space usage (human-readable format)
📌 Tip: Use
man <command>
to view detailed manual pages. For example: man ls
📂 File & Directory Management
ls
- List directory contentsLinux ls commandcp <source> <destination>
- Copy filesFile copy operationmv <source> <destination>
- Move or rename filesFile move/rename
✏️ Text Processing
grep "<pattern>" <file>
- Search for patterns in textText search with grepsed "s/<old>/<new>/" <file>
- Stream editor for filtering textawk "{print $1}" <file>
- Pattern scanning and processing language
🛠️ Practical Tips
- Use
alias
to create shortcuts for long commands - Pipe outputs with
|
(e.g.,ls | grep ".txt"
) - Redirect output with
>
or>>
(e.g.,echo "Hello" > test.txt
)
🚀 Expand Your Knowledge
For advanced topics like shell scripting or command-line automation, check out our Linux Commands Advanced Guide. Want to explore more? Visit our tutorials section for additional resources!
Linux terminal interface
Terminal interface showcasing command execution