Pawan
Pawan

Reputation: 32321

How to know the Path of a File inside a recursive directory structure

I am using Linux server through putty tool . Inside the linux server , I entered into a folder which is a Web Application (This is consisting of a number of sub directories with in it ) Inside that directory I need to find out a path of a java file where it is residing .

I tried using

ls -LR HttpXmlClient.java

( As i want to know the path of HttpXmlClient.java ) where it is residing exactly ??

Please let me know , thank you very much .

Upvotes: 0

Views: 125

Answers (2)

Hai Vu
Hai Vu

Reputation: 40723

Use the find command:

find $PWD -name 'HttpXmlClient.java'

Upvotes: 2

Daniel Pereira
Daniel Pereira

Reputation: 1785

The pwd command is what you are looking for.

Upvotes: 0

Related Questions