Reed_Xia Reed_Xia - 1 year ago 80
Linux Question

How to find certain file's full path using shell?

I get a problem, in my Ubuntu, I work in the directory like

, there are many sub-directories here, and I want to get all of the file in the directories, but you may know, if I use "
find -name
", it will return the list of relative paths, like following.


Can you please share how to get the full path list as below? Thanks!


Answer Source

with readlink ;

find -name -exec readlink -f {} \;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download