Alex Rivera | Logout

How to get full path of a file?

Asked 2011-03-10T20:45:28.027
1106

Is there an easy way I can print the full path of file.txt ?

file.txt = /nfs/an/disks/jj/home/dir/file.txt

The <command>

dir> <command> file.txt  

should print

/nfs/an/disks/jj/home/dir/file.txt
Edit
Report

1 Answer

-10

This will give you absolute path of the file:

find / -name file.txt 
answered 2013-07-25T11:29:30.100

Your Answer