Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-08-2005, 05:55 PM   #1
Registered: Dec 2003
Location: Campinas, Brasil
Distribution: slackware 10
Posts: 150

Rep: Reputation: 15
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:
$ pwd
$ some_cmd ../c2/bla.txt
is there such a command?
Old 11-08-2005, 06:02 PM   #2
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,661

Rep: Reputation: 229Reputation: 229Reputation: 229
"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*"

man find

Steve Stites


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
get full path of uploaded file in php spoody_goon Programming 2 05-10-2005 07:32 PM
How to parse full path of file name in bash ? hq4ever Programming 2 03-28-2005 03:31 PM
get full path of a command (in C) Hady Programming 9 11-21-2003 10:50 AM
Full Path problems chedmaster Linux - Newbie 1 06-26-2003 10:24 AM
How to get executable's full path using C/C++? oldbee Programming 6 02-19-2002 09:21 AM

All times are GMT -5. The time now is 04:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration