Tip Category 10 tips system-admin

System Admin

10 Total Tips
4 Beginner
5 Intermediate
1 Advanced
How to Use Linux Chmod Command for File Permissions? Quick Answer: Use chmod 755 filename to set read/write/execute for owner and read/execute for group/others, or chmod u+x filename to add execute permission for owner. Chmod controls file and directory access permissions in Linux. Frequently Asked Questions Q: What does chmod 755 mean in Linux? A: […]
Bash
find /var/www -type f -exec chmod 644 {} \; -o...
luc 14 min read
Read Tip
How to Use Linux Tar Command for Archive Management? Quick Answer: Use tar -czf archive.tar.gz /path/to/files to create compressed archives and tar -xzf archive.tar.gz to extract them. The tar command combines archiving and compression for efficient file management and backups. Frequently Asked Questions Q: What does tar -czf and tar -xzf mean? A: -czf means […]
Bash
tar -czf - /important/data | ssh user@backup-server 'cat > /backups/remote-backup.tar.gz'
luc 13 min read
Read Tip
How to Use Find Command with Content Filtering in Linux? Quick Answer: Combine the find command with grep using -exec to search for files by location AND content simultaneously. Use find /path -name "*.ext" -type f -exec grep -l "pattern" {} \; to locate files containing specific text patterns. Basic Find with Content Examples Frequently […]
Bash
find /path -name "*.log" -type f -exec grep -l "ERROR"...
luc 33 min read
Read Tip