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
Post a Comment