Last active
October 25, 2020 00:48
-
-
Save craftgear/11f2234525e3e9dab04867b199f5eced to your computer and use it in GitHub Desktop.
macOSのパージ可能領域を掃除するワンライナー
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# こちらのブログを参考にしました https://dafuku2.blogspot.com/2019/09/macos.html | |
# TimeMachineが使っている分しか消せないので、パージ可能領域は完全になくなりません。 | |
# 結構時間がかかります。 | |
tmutil listlocalsnapshots / | rg -e '\d{4}-\d{2}-\d{2}-\d{6}' -o | xargs -I date tmutil deletelocalsnapshots date |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment