Helpful Linux Commands

This is mostly for me, but you can use it for you.

Fix Permissions, common for WEB

find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;

Additionally for WordPress.

chmod 444 wp-config.php .htaccess

Compress folders into tar-gz

tar -pczf archive.tgz /folder

Change the Hostname properly in centos

hostnamectl set-hostname

Tmux Shared Sessions

to Host the tmux session

 tmux -S /tmp/tmux-shared-session new -s shared-session
chgrp coworkers /tmp/tmux-shared-session

to Join the tmux session

tmux -S /tmp/tmux-shared-session attach -t shared-session 

Say Something Nice