LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   what is the command to delete files and folders quickly. (https://www.linuxquestions.org/questions/linux-general-1/what-is-the-command-to-delete-files-and-folders-quickly-537111/)

ravi 03-13-2007 11:59 AM

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

686plus 03-13-2007 12:09 PM

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.


All times are GMT -5. The time now is 10:56 PM.