LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to delete a directory (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-delete-a-directory-163159/)

master 03-27-2004 05:46 PM

how to delete a directory
 
hello could some one please tell me how to delete a directory from a terminal owned by root
im running redhat 9
thanks

Peacedog 03-27-2004 05:54 PM

took this from

http://linux-newbie.sunsite.dk/lnag_...ile_management

Quote:

rm files
Remove (delete) files. You must own the file in order to be able to remove it (or be "root"). On many systems, you will be asked for a confirmation of deletion; if you don't want this, use the "-f" (=force) option, e.g., rm -f * will remove all files in my current working directory, no questions asked.
hope that clears it up.
good luck.

master 03-27-2004 06:47 PM

thanks that was spot on the exact way i did it was
open a terminal
type su
password
type rm -rf name
enter
where name is the name of the dirctory i want to delete

thanks PEACEDOG


All times are GMT -5. The time now is 11:26 PM.