Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

clean ubuntu root

docker image prune -a --filter "until=24h"
sudo apt-get clean
sudo apt-get autoremove --purge
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/(.*)-([^0-9]+)/1/")"'/d;s/^[^ ]* [^ ]* ([^ ]*).*/1/;/[0-9]/!d' | xargs sudo apt-get -y purge
 
PREVIOUS NEXT
Tagged: #clean #ubuntu #root
ADD COMMENT
Topic
Name
1+4 =