Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

ubuntu clean up disk space

#Quick clean up
sudo apt-get autoremove
sudo du -sh /var/cache/apt #clean apt cache
sudo apt-get autoclean
sudo apt-get clean
journalctl --disk-usage
du -h /var/lib/snapd/snaps #remove old versions of snap
rm -rf ~/.cache/thumbnails/* #clean thumbnail cache

#Detailed iformation
https://itsfoss.com/free-up-space-ubuntu-linux/
Comment

ubuntu disk free space

df -h
Comment

ubuntu clean up disk space

sudo apt-get autoremove &&
sudo du -sh /var/cache/apt &&
sudo apt-get clean &&
sudo apt-get remove --purge &&
sudo journalctl --vacuum-time=1d &&
rm -rf ~/.cache/thumbnails/*
Comment

ubuntu server clean up disk space

sudo apt install ncdu
ncdu
Comment

ubuntu clean up disk space

du -sk * | sort -nr | head -10
Comment

PREVIOUS NEXT
Code Example
Shell :: node check installed modules 
Shell :: echo -e flag 
Shell :: move from commit to stage 
Shell :: install safari in ubunut 
Shell :: poython opencv pip 
Shell :: mac address windows command 
Shell :: java path ubuntu 20.04 
Shell :: install prettier globaly 
Shell :: command to check the free disk space 
Shell :: add user to group linux 
Shell :: how to remove untracked files in git 
Shell :: rsync only new files 
Shell :: how to install teamspeak server arch linux 
Shell :: pm2 remove id 
Shell :: install vpn client for ubuntu 20.04 gui 
Shell :: how to push folder into private repo github 
Shell :: get vscode extensions with ps1 
Shell :: linux view directory premmisiosns 
Shell :: linux tar command 
Shell :: manjaro nodejs 
Shell :: install strapi 
Shell :: install hyperopt 
Shell :: wsl2 release memory 
Shell :: git pull from another branch 
Shell :: how to create a new file in kali linux 
Shell :: scp server to local 
Shell :: git set upstream remote branch 
Shell :: random hex chars bash 
Shell :: YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/repo/arch combination/ 
Shell :: tar compress powershell 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =