CLI Tricks

Just putting together a list of helpful command line tricks for myself.

Create a tree like structure from the ls command:

 


Rsync over SSH (Remote to local)
Also works in reverse order (local to remote)


Rsync over SSH using SUDO on the remote server


A very common task for me is to figure out what the size of files and folders in a particular directory are. When on the command line, I find this out with the following little snippet


Find the top 10 commands you use.