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

check disk space ubuntu

df -h
or
df -h --total
or
lsblk
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

free space in ubuntu

# Just open System Monitor from Dash and select the Filesystems tab!!!
Comment

PREVIOUS NEXT
Code Example
Shell :: where to check elastic beanstalk logs 
Shell :: git changes on branch carried over after switching to other branch 
Shell :: pm2 start yarn start 
Shell :: linux screen list 
Shell :: how to check if a python script is running 
Shell :: git bash command not found in vscode 
Shell :: search for files in linux terminal 
Shell :: replace substring in shell 
Shell :: clean my ubuntu 
Shell :: linux permanent alias 
Shell :: freebsd add user 
Shell :: create a zip file in linux 
Shell :: install powershell ubuntu 
Shell :: bash return last n characters from every line 
Shell :: nvm install ubuntu 
Shell :: chmod +777 to all files in folder and subfolder 
Shell :: how to install limma in r 
Shell :: git clone and change the folder name 
Shell :: kill dyno process heroku 
Shell :: print env variables 
Shell :: gzip folder .gz file in linux 
Shell :: check user terminal 
Shell :: link an existing local git to remote repo 
Shell :: sed delete between two patterns 
Shell :: how to change directory if folder name have space 
Shell :: git stash with message 
Shell :: git refusing to merge unrelated histories 
Shell :: git amend 
Shell :: install google chrome on ubuntu 
Shell :: check which users are part of a group linux 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =