linux tips
Table of Contents
Essential Commands
File Operations
ls -lah- List all files with human-readable sizescp -r source/ dest/- Copy directories recursivelyfind . -name "*.org"- Find all org files in current directory
System Information
df -h- Check disk spacefree -h- Check memory usagetoporhtop- Monitor processes
Package Management
For Debian/Ubuntu based systems:
sudo apt update sudo apt upgrade sudo apt install package-name
Useful Bash Aliases
Add these to your .bashrc:
alias ll='ls -lah' alias ..='cd ..' alias gs='git status' alias gc='git commit'
Working with Git
Basic workflow:
git status- Check current changesgit add .- Stage all changesgit commit -m "message"- Commit with messagegit push- Push to remote
Related Notes
- Back to first knowledge base