free up space ubuntu 18.04 code example Example 1: create space on ubuntu sudo apt-get autoremove Example 2: apt get remove unnecessary files sudo apt-get clean