Removing .DS_Store files from external drive

sduttonusa

macrumors newbie
Original poster
Dec 15, 2008
7
1
I know that to remove .DS_Store files on my internal drive . . . I just need to issue the following terminal command:

sudo find / -name ".DS_Store" -depth -exec rm {} \;

What is the terminal command to remove .DS_Store files from an external drive?
 
  • Like
Reactions: Isamilis

randomgeeza

macrumors 6502
Aug 12, 2014
312
127
United Kingdom
I know that to remove .DS_Store files on my internal drive . . . I just need to issue the following terminal command:

sudo find / -name ".DS_Store" -depth -exec rm {} \;

What is the terminal command to remove .DS_Store files from an external drive?
Run that command with the drive mounted. When running that command anything mounted, from externals... to NAS'... to iPods... will be scanned and the files removed (if found).
 

pickaxe

macrumors 6502a
Nov 29, 2012
759
266
Run that command with the drive mounted. When running that command anything mounted, from externals... to NAS'... to iPods... will be scanned and the files removed (if found).
I believe dot_clean, a built-in command, does the same thing.