Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sduttonusa

macrumors newbie
Original poster
Dec 15, 2008
8
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
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).
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.