Find the answer to your Linux question:
Results 1 to 7 of 7
I'm very new to Linux and it's terminal.I've been learning some basics commands and on my way there,I created a random folder with random files. Basically what it says in ...
  1. #1
    Just Joined!
    Join Date
    Jul 2010
    Posts
    10

    rmdir command problem?

    I'm very new to Linux and it's terminal.I've been learning some basics commands and on my way there,I created a random folder with random files.
    Basically what it says in the terminal help:--ignore-fail-on-non-empty which is to delete a folder even with files within them.I used to do this like a few hours ago but now it doesnt work.It doesn't delete nothing.

    Help?


    P.S.:I puted the verbose flag but they were no errors... 0-0

  2. #2
    tpl
    tpl is offline
    Linux User
    Join Date
    Jan 2007
    Location
    cleveland
    Posts
    452
    welcome to the forum

    "rmdir" works only on empty directories; try "rm -r"
    the sun is new every day (heraclitus)

  3. #3
    Just Joined!
    Join Date
    Jul 2010
    Posts
    10
    Thanks for your reply but the flag -r does not exist for the command rm . I need to delete each of them seperately.Any other possibilities?

  4. #4
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,230
    What happens when you execute?

    rm -rf filetobedeleted

    as su or sudo. Kindly make sure that you got the path right too.

    nujinini
    Linux User #489667

  5. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    I would suggest you to check linuxcommand.org
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #6
    Just Joined!
    Join Date
    Jul 2010
    Posts
    10
    Thank you for your responses.THe rm -rf command resolved my problems and also the site provided by devilcasper will be a great help.

    Also can someone explain me in detail what is the -rf flag?

  7. #7
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    1,946
    the r is for recursive, the f is for force. Rather than repeat others, just check these links:

    rm (Unix) - Wikipedia, the free encyclopedia
    Help -

Posting Permissions

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