Here is a list of useful commands that I find myself having to look up fairly often :
Move contents of folder one folder up and remove said folder
From the subfolder that you no longer need : mv * .[^.]* ..
Modifying hosts file (Mac/ Linux)
sudo vi /etc/hosts