Results 1 to 3 of 3

Thread: correct rm -rf command

  1. #1
    Join Date
    Dec 2007
    Location
    austin, tx
    Beans
    2,287
    Distro
    Ubuntu 17.04 Zesty Zapus

    Lightbulb correct rm -rf command

    in my folder
    /home/ray/desktop backgrounds
    i have about 100 files that have the prefix .thumb eg.-.thumb_20712.jpg. what would be the correct command to delete all of them at once. tks

  2. #2
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    find

    I would have tried find

    Code:
    find . -type f -name '.thumb.*' -delete

  3. #3
    Join Date
    Dec 2007
    Location
    austin, tx
    Beans
    2,287
    Distro
    Ubuntu 17.04 Zesty Zapus

    Lightbulb Re: correct rm -rf command

    lars tks had to add sudo to the beginning and then delete the last .

    sudo find . -type f -name '.thumb*' -delete

    that did the trick

Tags for this Thread

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
  •