sudo apt update && sudo apt upgrade -y
sudo apt autoremove && sudo apt clean
pbcopy < ~/.ssh/id_rsa.pub
sudo vi /private/etc/hosts
dscacheutil -flushcache
- .XZ create:
tar cvJf file.tar.xz /whatdir
- .XZ untar:
tar -xf file.tar.xz
- .GZ create:
tar cvzf file.tar.gz /whatdir
- .GZ untar:
tar -xvf file.tar.gz
and add-C /dir
to put it somewhere
ln -s /path/to/dir/
ln -fs /path/to/dir/
(to force an update of symlink)
tail -fn 30 file.log
mv -v ~/repo/* ~/public/
cp -avr /htdocs/wp-content/staging/wp-content/uploads/ /htdocs/wp-content/production/wp-content/
find ~/repo/ -type f -print0 | xargs -0 mv -t ~/public
find ~/repo/ -maxdepth 1 -type f -print0 | xargs -0 mv -t ~/public
scp [email protected]:/remote/filepath/file.tar.gz /local/path/file.tar.gz
scp file.tar.gz [email protected]:/remote/filepath/
scp [email protected]:/remote/filepath/file.tar.gz \[email protected]:/remote/filepath/
for f in *; do mv "$f" "`echo $f | tr "[:upper:]" "[:lower:]"`"; done
- alias ll='ls -lahGF'