command line - How can I list files with their absolute path in linux? -


i want generate recursive file listings full paths

/home/ken/foo/bar 

but far can see both ls , find give relative path listings

./foo/bar   (from folder ken) 

it seems obvious requirement can't see in find or ls man pages.

if give find absolute path start with, print absolute paths. instance, find .htaccess files in current directory:

find `pwd` -name .htaccess 

find prepends path given relative path file path.

greg hewgill suggested using pwd -p if want resolve symlinks in current directory.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -