dot_clean command

Discussion in 'OS X El Capitan (10.11)' started by h9826790, Jun 10, 2016.

  1. h9826790 macrumors 604

    h9826790

    Joined:
    Apr 3, 2014
    Location:
    Hong Kong
    #1
    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!
     
  2. KALLT macrumors 601

    Joined:
    Sep 23, 2008
    #2
    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
     
  3. h9826790 thread starter macrumors 604

    h9826790

    Joined:
    Apr 3, 2014
    Location:
    Hong Kong
    #3
    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.
     

Share This Page