LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 03-13-2007, 11:59 AM   #1
ravi
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 GB.it was taking long time when i delete in GUI mode...

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

Thankyou

Ravi.S
 
Old 03-13-2007, 12:09 PM   #2
686plus
Member
 
Registered: Nov 2004
Location: Portland, Oregon
Distribution: Ubuntu
Posts: 114

Rep: Reputation: 17
Code:
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.
 
  


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 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 10:23 PM
Can't delete certain files or folders...how do I change this? xsithlordx Suse/Novell 10 03-05-2006 10:32 PM
HELP: can't delete files/folders :( kevingpo General 1 12-07-2004 07:51 PM
Delete old files and folders Script? AsteX Linux - General 4 11-11-2004 06:26 PM
moving files and folders thru command line JROCK1980 Linux - General 2 02-16-2004 06:55 PM


All times are GMT -5. The time now is 07:27 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration