LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-27-2005, 02:14 AM   #1
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Rep: Reputation: 30
remove entire directory.


i am using mandrake 10.0 +KDE.

may i know the command to remove entire directory and sub-directory and their files.

#rmdir name

it should not ask for every file. yes yes.


so when i give that command the full directory will go without asking me anymore.
thanks.
 
Old 04-27-2005, 02:16 AM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
rm -fr <directory> ... be careful with it, if your root and accidentally leave a space somewhere like:

rm -fr / home/me/directory

in the above ex. I accidentally left a space between / and home, in this case if you are root say goodbye to your system...
 
Old 04-27-2005, 02:23 AM   #3
kenziem
LQ Newbie
 
Registered: Apr 2005
Location: Ottawa, Canada
Distribution: SuSE, Ubuntu, Centos
Posts: 9

Rep: Reputation: 0
Re: remove entire directory.

Quote:
Originally posted by bruse
i am using mandrake 10.0 +KDE.

may i know the command to remove entire directory and sub-directory and their files.

#rmdir name

it should not ask for every file. yes yes.

Try
#rm name -rf

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to copy an entire directory structure except certain files? thanhvn Programming 9 01-27-2012 12:41 PM
Samba Sharing entire Home Directory jawaking00 Linux - Newbie 2 07-25-2005 09:13 AM
removing an entire directory pasalacqua128 Linux - Software 2 06-03-2004 05:37 PM
download entire directory via ftp peok Linux - General 5 12-27-2003 07:37 AM
changing permissions for entire directory jmarsh Linux - Networking 2 05-13-2003 09:12 AM


All times are GMT -5. The time now is 05:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration