Tmux Session Management
Essential tmux commands for managing multiple terminal sessions and windows.
# Start new tmux session
tmux new -s session_name
# Detach from session (Ctrl+b d)Shell recipes, Git workflows and system commands that trade repetitive clicks for decisive keystrokes.
20 entriesEssential tmux commands for managing multiple terminal sessions and windows.
# Start new tmux session
tmux new -s session_name
# Detach from session (Ctrl+b d)Create useful Git aliases for faster workflow and common operations.
# Add these to ~/.gitconfig or run individually
# Status shortcuts
git config --global alias.s "status -sb"Common commands for managing file permissions and ownership in Unix systems.
# Change permissions using symbolic mode
chmod u+x file.sh # Add execute for user
chmod go-w file.txt # Remove write for group and others
chmod a+r file.txt # Add read for all (user, group, others)Commands for viewing, managing, and troubleshooting running processes.
# List all processes
ps aux
ps -ef
Essential network diagnostic tools for connectivity, DNS, and port checking.
# Basic connectivity test
ping google.com
ping -c 4 8.8.8.8 # Send 4 packets
Commands to analyze disk usage and find large files for cleanup.
# Show disk usage summary
df -h # Human readable
df -i # Inode usage
Powerful text manipulation commands for searching, filtering, and transforming text data.
# Grep patterns
grep "pattern" file.txt
grep -r "error" /var/log/ # Recursive
grep -i "warning" file.txt # Case insensitiveCommands to check system hardware, OS version, and resource information.
# Kernel and OS info
uname -a
cat /etc/os-release
lsb_release -aCreate, extract, and manage tar archives with compression.
# Create tar archive
tar -cvf archive.tar file1 file2 dir1/
tar -cvf archive.tar . # Current directory
Practical curl examples for HTTP requests, API testing, and web debugging.
# Basic GET request
curl https://api.example.com/data
# Save output to fileMonitor system resources, processes, and performance in real-time.
# Real-time process monitoring
top
htop # Enhanced version (install if needed)
Powerful file synchronization and backup using rsync with various options.
# Basic sync (local)
rsync -av source/ destination/
# Sync with progress