Find file path in Linux

Find file path in Linux

Problem: Write a shell script which finds a path of a file within the specified directory and output the full file path


The following command would attempt to look for a file name called db2jcc4.jar in a specified directory.

If you wish to look for the file within the directory where you’re currenly executing the script or the command from, use the following command:

If you wish to cover a wide area for the file search simply replace the command with the top level, like so:

Leave a Reply