LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   full path of a file (https://www.linuxquestions.org/questions/linux-general-1/full-path-of-a-file-381256/)

ttilt 11-08-2005 05:55 PM

full path of a file
 
how can i tell the full path of any given file?

say i'm on directory /a/b/c1 and there's a file called /a/b/c2/bla.txt

how can i get the full path to the file bla.txt from my current directory /a/b/c1?

for example:
Code:

$ pwd
/a/b/c1
$ some_cmd ../c2/bla.txt
/a/b/c2/bla.txt

is there such a command?

jailbait 11-08-2005 06:02 PM

"how can i get the full path to the file bla.txt from my current directory /a/b/c1?"

Use the find command:
find / -iname "*bla.txt*"

See:
man find

-------------------------------
Steve Stites


All times are GMT -5. The time now is 07:27 AM.