Useful Bash Commands
File Management
# Find files modified in last 24 hours
find . -mtime -1 -type f
Detailed directory listing with human-readable sizes
ls -lah
Recursive directory size
du -sh *
Process Management
# Check system resources
htop
List all processes for current user
ps aux | grep $USER
Kill process by name
pkill process_name
Archive Management
# Create tar archive
tar -czvf archive.tar.gz directory/
Extract tar archive
tar -xzvf archive.tar.gz
List contents without extracting
tar -tvf archive.tar.gz
SSH and Remote Operations
# Create SSH key
ssh-keygen -t rsa -b 4096
Copy files with progress bar
rsync -avz --progress source/ destination/