Shell Basics
The shell is your primary interface for interacting with Linux systems.
Essential Commands
| Command | Purpose |
|---|---|
ls -la | List files with details |
cd, pwd | Navigate directories |
cp, mv, rm | Copy, move, delete |
grep pattern file | Search text |
find . -name "*.log" | Find files |
chmod, chown | Permissions |
Pipes and Redirection
# Pipe output to another command
cat access.log | grep "404" | wc -l
# Redirect output to file
npm test > results.txt 2>&1