0

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

Pavithra
  • 29
  • 1
  • 1
  • 14
  • 2
    Possible duplicate of [How to use find command to find all files with extensions from list?](https://stackoverflow.com/questions/2621513/how-to-use-find-command-to-find-all-files-with-extensions-from-list) – SanSolo Dec 14 '18 at 06:06

1 Answers1

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

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

theMerakist
  • 239
  • 2
  • 14