LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-08-2005, 05:55 PM   #1
ttilt
Member
 
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:
Code:
$ pwd
/a/b/c1
$ some_cmd ../c2/bla.txt
/a/b/c2/bla.txt
is there such a command?
 
Old 11-08-2005, 06:02 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:07 PM.

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