Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to clean snap linux

#!/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
Comment

PREVIOUS NEXT
Code Example
Shell :: bash dynamic varibale 
Shell :: bash get line from file 
Shell :: certbot command 
Shell :: get you the list of those packages that Postgres installed. 
Shell :: check if apache new config is running centos 
Shell :: ssh set owner recursive 
Shell :: git find largest files in repo 
Shell :: xfce apt install xfce4-xkb-plugin 
Shell :: ubuntu 16 lock from terminal 
Shell :: install docker ce on centos 
Shell :: gitlab backups paths 
Shell :: Postgres - FATAL: database files are incompatible with server 
Shell :: install sonic visualizer ubuntu 
Shell :: shell randomly permute lines 
Shell :: rename heroku remote 
Shell :: how to write red text in readme in github 
Shell :: python rioxarray install 
Shell :: node-gyp rebuild error ubuntu 20.04 
Shell :: install grunt-autoprefixer using npm 
Shell :: ./utserver: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory 
Shell :: oracle docker images 
Shell :: unix rename file 
Shell :: linux while loop shell 
Shell :: create a new git branch 
Shell :: how to run a specific knex seed file 
Shell :: download pgadmin 4 ubuntu 
Shell :: wsl python image 
Shell :: undo git amend 
Shell :: enter passphrase is asking for password 
Shell :: terminal mkv to mp4 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =