A bunch of random useful terminal commands.
du -sh [folder/file]
Shows the size of the folder or file.
rsync -avP [source folder] [destination folder]
Use rsync to copy a folder to another folder, using the archive, verbose and progress flags.
Notice: you can “pause” this command using CTRL+C and continue it later.
sudo leafpad /etc/apt/sources.list
Show the sources list, to add, remove or edit repositories.
sudo add-apt-repository ppa:[repo]
Add a repo to the sources list. […] »