Basics • 5 min read

Files, Permissions & Archives

Linux file permissions control read (4), write (2), and execute (1) access for owner, group, and others.

Common Permission Commands

chmod 644 config.yml        # Owner rw, others read-only
chmod 755 deploy.sh         # Executable script
chown -R deploy:deploy /opt/app

Archives & Search

tar -czf backup.tar.gz /etc/myapp
tar -xzf backup.tar.gz -C /tmp/restore
find /var/log -type f -name "*.log" -mtime +14

Download linux-cheatsheet.txt