stupid rm question

Discussion in 'Technical' started by Daisy, Jun 26, 2007.

  1. Daisy

    Daisy New Member

    I don't know why I can't figure this out. What if I want to remove all files starting with thmb from 217 subdirectories?


    I tried rm -rf thmb* but that didn't work. Suggestions? (sorry for such a newb question)
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The files are in different directories, so this will not work. If you want to delete all files, you will either have to enter every directory manually or you delete the 1 2 3 directories and files.
  3. Daisy

    Daisy New Member

    what about mv? could you mv all those files to a single directory and then delete that directory?

    There has to be a way to do this. If you can do it with windows you have to be able to do it with linux. (one would think) or is this a feature you lose in the name of security?
  4. falko

    falko Super Moderator ISPConfig Developer

Share This Page