Pavithra
Pavithra

Reputation: 29

Unix command to search particular type of files in a directory

How to search particular types of files like .java,.class in a specific directory using unix command? I want list of all .java files in a directory

Upvotes: 0

Views: 51

Answers (1)

theMerakist
theMerakist

Reputation: 279

find /path/to/directory/ -name "*.java" -print

This will list all the files ending .java from the specified path

Upvotes: 2

Related Questions