Can any one please tell me the command that can be used to delete files of a particular extension such as .doc or .txt or .class etc from a folder or a directory on Linux? I want to delete the files together not individually though. Thanks a lot.

rm *.<extension>

Hi,

Thanks a lot for the help.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.