Essential Linux Commands: A Quick Reference for Shell Operations
This comprehensive reference provides a quick overview of fundamental Linux shell commands for managing files, directories, searching content, and utilizing command piping.
1. List Command (ls)
- List all visible files and directories →
ls - List all files and directories (including hidden files) →
ls -a - Long list format →
ls -l - Human-readable format →
ls -lh - Combining arguments: human-readable format + hidden files →
ls -lah - Get more information about the
lscommand →man ls
2. Files and Directories Management
Creating Files
- Create a new file (without opening it) →
touch [name-of-your-file] - Create a new file using a text editor →
vim [name-of-your-file]ORnano [name-of-your-file]
- Create a new file (without opening it) →
Copying Files
- Copy a file →
cp [source-path-of-your-file]
- Copy a file →