Results 1 to 3 of 3

Thread: recursive delete all files beginning with ._ ?

  1. #1
    Join Date
    Oct 2008
    Location
    /usr/bin/
    Beans
    493
    Distro
    Ubuntu

    recursive delete all files beginning with ._ ?

    Hello, How can I recursive delete all files beginning with ._ ? thanks

  2. #2
    Join Date
    Apr 2012
    Beans
    7,256

    Re: recursive delete all files beginning with ._ ?

    To delete all such files from the current directory down,

    Code:
    find -type f -name '._*' -delete
    or if you want to make it interactive (i.e. give you a chance to review each file and decide whether to delete it)

    Code:
    find -type f -name '._*' -exec rm -i {} \;
    Note that these are true deletes - no second chances, no "restore from trash"

  3. #3
    Join Date
    Oct 2008
    Location
    /usr/bin/
    Beans
    493
    Distro
    Ubuntu

    Re: recursive delete all files beginning with ._ ?

    perfect. thanks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •