Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
srikanth sankurthi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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/
 
srikanth sankurthi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 15364
40
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The "rm" (remove) command can be used to delete files.

See the manual by typing in the command: man rm
 
srikanth sankurthi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you for your reply
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic