aspose file tools*
The moose likes Linux / UNIX and the fly likes how to delete a file in linux and how to delete all files from a directory in linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "how to delete a file in linux and how to delete all files from a directory in linux" Watch "how to delete a file in linux and how to delete all files from a directory in linux" New topic
Author

how to delete a file in linux and how to delete all files from a directory in linux

srikanth sankurthi
Greenhorn

Joined: Oct 09, 2012
Posts: 9
please share commands for how to delete a file in linux and how to delete all files from a directory in linux.

Thanks in advance.
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

One simple google hit first link i got this. Google should be your first mentor Don't take me wrong http://www.cyberciti.biz/faq/howto-linux-unix-delete-remove-file/


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
srikanth sankurthi
Greenhorn

Joined: Oct 09, 2012
Posts: 9
In my office those links are not allowed to view thats why i posted here any way thank you for your reply.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14435
    
  23

The "rm" (remove) command can be used to delete files.

See the manual by typing in the command: man rm


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
srikanth sankurthi
Greenhorn

Joined: Oct 09, 2012
Posts: 9
thank you for your reply
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to delete a file in linux and how to delete all files from a directory in linux