Get Directory Size

Here’s how to get the size of a directory.

du -sh /var/www

Output:

2.1GB    /var/www

Size of the directories and files one level down.

du -sh /var/www/*

Sort with biggest files from top to bottom.

du -sh /var/www/* | sort -rh

Top 5 biggest files from top to bottom.

du -sh /var/www/* | sort -rh | head -5

Remmina Install

Remmina is the RDP (remote desktop software) for Windows server on Linux. Here’s how to install.

sudo add-apt-repository ppa:remmina-ppa-team/remmina-next
sudo apt-get update
sudo apt-get install remmina remmina-plugin-* libfreerdp-plugins-standard

If you don’t see the RDP option, kill the process and restart Remmina.