Fix Error: rmdir: `html\': Directory not empty
RegisterLogin
Fix Error: rmdir: `html\': Directory not empty
Post Description: Fix Error: rmdir: `html\': Directory not empty
Tags: Fix, Error:, rmdir:, `html\':, Directory, not, empty
This Post Was Posted On Feb 29, 2008 By administrator #785
Post Description: Fix Error: rmdir: `html\': Directory not empty
Tags: Fix, Error:, rmdir:, `html\':, Directory, not, empty
This Post Was Posted On Feb 29, 2008 By administrator #785
Fix Error: rmdir: `html\': Directory not empty by administrator
Code:
rmdir html
I got the following error:
Code:
rmdir: `html': Directory not empty
I was possitive I also wanted to deleted all the files in this directory. I didnt want to delete its files one by one to make it empty. I thought there's got to be a easy and faster way to delete the whole directory at once. I found it!
WARNING: make certain you are 100% sure you want to delete the directory and its files. After you execute this command, there is not turning back. So please make sure you are ready to delete the direcotry (folder)
Example: I want to remove the html directory in /var/www/html to do this i execute these commands:
Change to the /var/www directory:
Code:
cd /var/www
Check to make sure I am in the /var/www directory
Code:
pwd
List the files and direcotories in /var/www to be sure the html directory is in the www direcotry
Code:
ls
INSTEAD OF USING THE RMDIR COMMAND USE THE RM COMMAND:
Now DELETE the html directory and its files and subdirectories
Code:
rm -rf html
List the files in the www directory to confirm my html directory is gone
Code:
ls
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
hostman
#985 1
just do the -rf
like this
rm -rf name_of_file
it worked for me
like this
rm -rf name_of_file
it worked for me
Apr 03, 2008 Reply Report abuse
Samuel
#984 2
super. i was revolving around rmdir finally used rm as per your suggestion. its coool. thats worked
Mar 17, 2008 Reply Report abuse
Aniket Arondekar
#983 3
That was of great help....thanks a lot
Feb 15, 2007 Reply Report abuse
Leave Your Comments...
©2011 Webune Forums - Wed Dec 21, 2011 2:34 am
Powered by: Webune Forums V3
Powered by: Webune Forums V3