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

h9826790

macrumors P6
Original poster
Apr 3, 2014
15,659
7,864
Hong Kong
Hi, I am just a normal Mac user, not very familiar with the terminal command.

I sometimes use dot_clean command to clean up a USB external HDD, which is for my TV.

May I know is there any way to use this command to clean up the whole drive?

At this moment, I only know how to clean up each folder one by one.

Million thanks in advance!
 

KALLT

macrumors 603
Sep 23, 2008
5,330
3,360
dot_clean is already recursive, so you just have point it to the root. For instance:
Code:
dot_clean /Volumes/MyDrive


You can see the exact volume name with these commands (or through Finder > Get Info):
Code:
ls /Volumes
df
 
  • Like
Reactions: Weaselboy

h9826790

macrumors P6
Original poster
Apr 3, 2014
15,659
7,864
Hong Kong
dot_clean is already recursive, so you just have point it to the root. For instance:
Code:
dot_clean /Volumes/MyDrive


You can see the exact volume name with these commands (or through Finder > Get Info):
Code:
ls /Volumes
df

Thank you very much, may be because I read some very old info on the internet (from memory, it's about OSX 10.5 :p), that's why it says dot-clean is not recursive.

Anyway, thanks for the info. It makes my life easier.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.