Catagorized Notes
Renamed notes to fit categories and be easier to find later: blog, config, howto
This commit is contained in:
12
howto - clean up old snaps.md
Normal file
12
howto - clean up old snaps.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# Clean up old snaps
|
||||
|
||||
```shell
|
||||
#!/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
|
||||
```
|
||||
Reference in New Issue
Block a user