sudo apt-get autoremove – This command removes any unused dependencies from the Ubuntu system.
sudo apt-get clean – This command removes all cached package files.i
These commands won’t hurt your system. On a system that’s been updated a couple of times, you can free-up as much as a gigabyte using these commands. You can do a before and after using the following command: