Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

snaps in ubuntu take a lot of space

#!/bin/bash
# Removes old revisions of snaps
# CLOSE ALL SNAPS BEFORE RUNNING THIS
set -eu

LANG=en_US.UTF-8 snap list --all | awk '/disabled/{print $1, $3}' |
    while read snapname revision; do
        snap remove "$snapname" --revision="$revision"
    done
Source by www.linuxuprising.com #
 
PREVIOUS NEXT
Tagged: #snaps #ubuntu #lot #space
ADD COMMENT
Topic
Name
9+1 =