Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to clear log snap.io

# make a file with name whatever.sh
# where contain botton script
# then run sudo bash whatever.sh

#!/bin/bash
# Removes old revisions of snaps
# CLOSE ALL SNAPS BEFORE RUNNING THIS
set -eu
snap list --all | awk '/disabled/{print $1, $3}' |
    while read snapname revision; do
        snap remove "$snapname" --revision="$revision"
    done
Source by itsfoss.com #
 
PREVIOUS NEXT
Tagged: #clear #log
ADD COMMENT
Topic
Name
8+7 =