Fedora Linux Support Community & Resources Center
  #1  
Old 21st February 2012, 02:17 AM
mroussun51 Offline
Registered User
 
Join Date: Feb 2012
Location: North Carolina
Posts: 3
linuxfirefox
rm -r directory

Hello,

I have just installed fedora 16. I want to rm to a directory. Specifically rm -r directory from root. I am familiar with Unix , Unix like, and linux unix like. I have not seen this behavior with other unices. I have looked at the manual page for syntax and it appears that I am syntactically correct. Here's what it is doing.

[CODE[root@alex opt]# ls
google jre1.6.0_31
[root@alex opt]# rm -r jre1.6.0_31
rm: descend into directory `jre1.6.0_31'? y
rm: descend into directory `jre1.6.0_31/man'? y
rm: remove directory `jre1.6.0_31/man/man1'? y
rm: remove directory `jre1.6.0_31/man'? y
rm: descend into directory `jre1.6.0_31/lib'? really, doesn't -r = recursively
][/CODE]

Thanks in advance!
Reply With Quote
  #2  
Old 21st February 2012, 02:31 AM
JamesNZ Offline
Registered User
 
Join Date: Aug 2010
Location: Wellington, New Zealand
Age: 17
Posts: 904
windows_7chrome
Re: rm -r directory

You have to run it with the 'f' force argument. So the syntax would be
Code:
rm -rf folder
__________________
"For what is a man profited if he gains the whole world, but loses his own soul?"

- Jesus
Reply With Quote
  #3  
Old 21st February 2012, 02:43 AM
mroussun51 Offline
Registered User
 
Join Date: Feb 2012
Location: North Carolina
Posts: 3
linuxfirefox
Re: rm -r directory

To whom it interests,

I added the forcefully option and it worked. Recursively should have worked without forcefully removing the directory and subdirectories/files. I am leaving this open for comments. This is my first thread here. I am running KDE on fc 16. I just switched from Ubuntu. I can live with having to rm -rf <directory>.

Thanks again!
Reply With Quote
  #4  
Old 21st February 2012, 04:51 AM
smr54 Offline
Registered User
 
Join Date: Jan 2010
Posts: 5,479
linuxchrome
Re: rm -r directory

Not on a Fedora machine right now, but it's quite possible that rm is either aliased to something like rm -i (prompt before removing) or something is built into the Fedora version of either rm itself or possibly the shell's version of it. Many distributions (and systems) alias some things. For example, typing the command alias, I see that CentOS has put in several aliases for different types of ls. An ArchLinux box does the same thing (aliasing ls to ls --color=auto). A FreeBSD box has a couple of built in aliases as well.

I'm not sure if any of these are distro specific or shell specific, or shell specific for a particular distro.

Last edited by smr54; 21st February 2012 at 05:29 AM.
Reply With Quote
Reply

Tags
directory

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove directory contents but not directory? mattcen Using Fedora 17 22nd March 2008 08:21 AM
How can I mount a directory out of the root directory kanbowei Using Fedora 7 13th November 2007 03:40 PM
unable to create any directory that uses numbers as the directory name fed.linuxgossip Using Fedora 19 8th October 2007 03:51 PM
looking for directory /app/lan instead of /opt/* ogoy Using Fedora 0 11th January 2007 03:50 AM
fedora directory server with automounting home directory balorg Servers & Networking 2 7th August 2006 12:20 AM


Current GMT-time: 10:18 (Monday, 28-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat