dig +short A <hostname>
du -a / | sort -n -r | head -n 10
sed -i 's/old-word/new-word/g' *.txt
echo *.*/public_html/ | xargs -n 1 cp -R dir_to_copy/
cd(with no directory) takes you to your home dir (ie: cd ~)cd -(with a hyphen) takes you back to the last directory you cd'd to
sudo !!
rename 's/.html$/.php/' *.html
ssh -ND 9999 user@server.com
Once you enter your password, nothing will happen. This is because the -N switch tells SSH to (N)ot open an interactive session TIPS: Use the -C switch to enable compression
cd /dir/with/files/ && python -m SimpleHTTPServer 8000
<space>command
cp /var/www/foo.php{,.bak}
Is the same as:
cp /var/www/foo.php /var/www/foo.php.bak
history | awk '{print $2}' | awk 'BEGIN {FS="|"}{print $1}' | sort | uniq -c | sort -nr | head
Note: requires libav-tools (sudo apt-get install libav-tools)
avconv -i filename_in.mkv -codec copy filename_out.mp4