This post is to discuss how to remove unnecessary softwares and change the default installation directory.
du -hs * | sort -h # ascending order
du -hs $(ls) | sort -h # ascending order
sudo mkdir /usr/local/anaconda3
sudo chown $USER:$USER /usr/local/anaconda3
sudo rsync -aXS $HOME/anaconda3/. /usr/local/anaconda3/.
mv $HOME/anaconda3 $HOME/anaconda3_back
ln -s /usr/local/anaconda3 $HOME/anaconda3
## Testing by opening the software
## Then remove it
rm -rf $HOME/anaconda3_back
## To list directories with links
ls -l
## You will see directory_A -> directory_B
## To remove a symlink
unlink directory_A
du -sh /var/cache/apt/archives
sudo apt-get clean
sudo apt-get autoremove --purge