Getting the size of all files and folders inside the current directory can be done by typing:

Get filesize in descending order from all files in a recursive folder structure

Another quite handy tool is ncdu. It provides you the disc usage in a graphical way on the shell. Install it like this:

List folders bigger 1Mb and list them in descending order

List the ten largest folders inside a recursive folder structure

 

A handy tool for dealing with different bash sessions is tmux. It’s comparable with gnu screen but by far more advanced. You can get it with:

Launch it by typing:

Dealing with sessions brings great power. You can set up your multi-windows panes on a remote machine, in a seperate session. Now you can detach from this session and log out. When you later ssh back into this machine you can reattach this session and all your views are restored.

Executing commands tmux specific is usually prefixed with the key combination ctrl+b. See the following list what you can do with tmux.