df -h
Show disk usage of un/hidden folders
du -sch .[!.]* * |sort -h
Find working kernel
uname -rList installed kernels
dpkg --list | grep linux-image
Sort and display packages size:
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -nCompletely delete a package
sudo apt-get purge packagenameDelete unused packages
sudo apt-get autoremoveClean Apt cache
sudo apt-get clean
Brew cache cleanup
rm -rf $(brew --cache)Brew uninstall
sudo ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
RVM
rvm uninstall ruby-2.3.3Uninstall gems
gem uninstall -aIx
NPM cache cleanup
npm cache cleanYarn (Node.js) cache cleanup
yarn cache clean