Knowledge Base

308 copy-ready commands with fill-in variables, plus step-by-step installation guides.

Installation Guides 11

Categories

Installation Guides (11)

Tags

9 results

Files & Permissions

Set web folder ownership to www-data

sudo chown -R www-data:www-data {{path}}
#permissions #chown
3 views 0 copies
Files & Permissions

Apply standard web permissions (755/644)

sudo find {{path}} -type d -exec chmod 755 {} \; && sudo find {{path}} -type f -...
#permissions #chmod
3 views 0 copies
Files & Permissions

Unzip archive into web root

sudo unzip {{zip_file}} -d {{destination}}
#unzip #archive
13 views 5 copies
Files & Permissions

Check disk space and largest folders

df -h && echo '---' && sudo du -sh {{path}}/* 2>/dev/null | sort -hr | head -10
#disk #du
5 views 1 copies
Files & Permissions

Sync folder between servers (rsync)

rsync -avz --progress {{source}} {{user}}@{{remote_host}}:{{destination}}
#rsync #sync
3 views 0 copies
Files & Permissions

Rsync Directory to Remote Server

rsync -avz --progress {{local_path}}/ {{user}}@{{host}}:{{remote_path}}/
#rsync #sync
3 views 0 copies
Files & Permissions

Rsync Mirror (Delete Missing Files)

rsync -avz --delete {{src}}/ {{user}}@{{host}}:{{dest}}/
#rsync #mirror
3 views 0 copies
Files & Permissions

Create a Compressed tar.gz Backup

tar -czf /backups/{{name}}-$(date +%Y%m%d-%H%M).tar.gz {{path}}
#tar #backup
4 views 0 copies
Files & Permissions

Find Files Larger Than Size

find {{path}} -type f -size +{{size}} -exec ls -lh {} \; | sort -k5 -rh | head -...
#find #files
5 views 1 copies