LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 03-02-2007, 10:21 AM   #1
ramesh_manu
LQ Newbie
 
Registered: Dec 2006
Location: chennai, India
Distribution: redhat & mandriva
Posts: 17

Rep: Reputation: 0
remove directory completely


how can i remove the directory completely (including sub directories and files) in shell prompt ?
 
Old 03-02-2007, 10:24 AM   #2
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
rm -rf (BE EXTRA CAREFULL!)
 
Old 03-02-2007, 01:15 PM   #3
7stud
LQ Newbie
 
Registered: Feb 2007
Posts: 22

Rep: Reputation: 15
Quote:
Originally Posted by theYinYeti
rm -rf (BE EXTRA CAREFULL!)
Why not:

rm -ri filename

??
 
Old 03-05-2007, 11:27 AM   #4
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
Although in theory you're right, in practice, the -r switch usually implies quite a lot of files to delete, and you often don't want to answer 'y' to each of those files. But I repeat: you're right

Yves.
 
  


Reply



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
Completely Remove xfce4 tux0r Linux - Software 2 09-11-2011 02:16 AM
Completely remove Gnome? android6011 Linux - Software 1 10-16-2006 03:15 PM
How do I completely remove GRUB? AhrenBa Linux - Distributions 1 07-19-2006 11:32 AM
How to remove KDE completely? leduytien Linux - Software 3 10-20-2004 11:45 AM
completely remove a program edigital Linux - Software 3 02-21-2004 02:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:13 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
Open Source Consulting | Domain Registration