Command Line (Linux)

Find/Replace

Find and replace all instances of a phrase with another one

sudo find /folder/path -type f -exec sed -i -e 's/originalword/newword/g' {} \;

Delete Folder with many files

cd /path/to/folder && perl -e 'for(<*>){((stat)[9]<(unlink))}'

Largest folders listed out

du -a /path/to/folder | sort -n -r | head -n 10

Rsync

SCP

For AWS pem file:

Curl

Get redirect URL

If I want to see where a URL redirects to, run this command:

Last updated