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