Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-13-2007, 12:59 PM   #1
LQ Newbie
Registered: Jan 2006
Location: CHENNAI
Distribution: RH9(2.4.20-8)
Posts: 13

Rep: Reputation: 0
what is the command to delete files and folders quickly.

hi to all..
i hope all are fine.
My problem is ,,,

i want to delete files and folders which is not necessary..
that too quickly...becoz the size of the folder is 5 was taking long time when i delete in GUI mode...

Please send me some commands to delete that files quickly..


Old 03-13-2007, 01:09 PM   #2
Registered: Nov 2004
Location: Portland, Oregon
Distribution: Ubuntu
Posts: 114

Rep: Reputation: 17
rm -rf /your/directory/to/delete
Be really careful, try it without the f option on a subdirectory to get an idea how it works (basically to make sure you say what you mean regarding the path).

rm is the delete (remove) command
-r makes it recursive so it will go in subdirectories
-f forces the deletion.. the default is to confirm each file

There is no undo.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to delete directories with files using command line FTP Zombie13 Linux - Software 2 03-10-2006 11:23 PM
Can't delete certain files or do I change this? xsithlordx SUSE / openSUSE 10 03-05-2006 11:32 PM
HELP: can't delete files/folders :( kevingpo General 1 12-07-2004 08:51 PM
Delete old files and folders Script? AsteX Linux - General 4 11-11-2004 07:26 PM
moving files and folders thru command line JROCK1980 Linux - General 2 02-16-2004 07:55 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:53 AM.

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