Created
July 10, 2022 21:03
-
-
Save LukasRypl/b0ea525cd4d1d852c450045d443bde67 to your computer and use it in GitHub Desktop.
After connecting card/USB storage to mac, lot of extra hidden files are generated ... this is a way to remove them
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/bash | |
volume="/Volumes/CANON_DC" | |
# disable indexing | |
sudo mdutil -v -i off ${volume} | |
# remove index | |
sudo mdutil -v -X ${volume} | |
# remove all mac extra files (verbose) | |
dot_clean -v ${volume} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment