Write the command you would use to locate all of the java fi

Write the command you would use to locate all of the “.java” files in your current directory without using ls? Your command should be case-sensitive (it should not ignore case).

Solution

Instead of ls command, we can use find command. It is pretty simple to use.

find . -type f -name \"*.java\"

It will check all files with extension java and list all the names.

Write the command you would use to locate all of the “.java” files in your current directory without using ls? Your command should be case-sensitive (it should

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site