清理ubuntu 磁盘

删除过期的历史版本缓存

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

# clean go cache dir. maybe > 1.2GB
go clean -cache

猜你喜欢

转载自blog.csdn.net/jacky128256/article/details/120835421