Linux Remove Dir

This is a discussion on Linux Remove Dir within the A Brief History of Cprogramming.com forums, part of the Community Boards category; When I try to remove a directory that isn't empty under Linux with the rmdir command it sais the directory ...

  1. #1
    Unregistered
    Guest

    Linux Remove Dir

    When I try to remove a directory that isn't empty under Linux with the rmdir command it sais the directory isn't empty... how can I delete a directory that has files/directories in it?

    Thanks

  2. #2
    Registered User xlnk's Avatar
    Join Date
    Mar 2002
    Posts
    186
    this:

    rm -rf /directory

    where the "/directory" is the path to the folder.

    the -r stands for recursive and the -f stands for force.
    the best things in life are simple.

  3. #3
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    i usually use a capital R

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. WIN32 API and Linux... *shudder
    By parad0x13 in forum C++ Programming
    Replies: 4
    Last Post: 07-24-2008, 07:27 PM
  2. installing linux for the first time
    By Micko in forum Tech Board
    Replies: 9
    Last Post: 12-06-2004, 04:15 AM
  3. command line alias remove for linux
    By iain in forum Tech Board
    Replies: 6
    Last Post: 11-22-2004, 12:39 PM
  4. Linux for Windows!
    By Strut in forum Linux Programming
    Replies: 2
    Last Post: 12-25-2002, 10:36 AM
  5. linux vs linux?
    By Dreamerv3 in forum Linux Programming
    Replies: 5
    Last Post: 01-22-2002, 08:39 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21