LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This 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
 
Thread Tools
Old 11-08-2005, 06:55 PM   #1
ttilt
Member
 
Registered: Dec 2003
Location: Campinas, Brasil
Distribution: slackware 10
Posts: 150
Thanked: 0
full path of a file


[Log in to get rid of this advertisement]
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?
ttilt is offline     Reply With Quote
Old 11-08-2005, 07:02 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: atop the Blue Ridge
Distribution: Debian Lenny, CentOS 5.2
Posts: 7,250
Thanked: 31
"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
jailbait is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 Off
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 08:32 PM
How to parse full path of file name in bash ? hq4ever Programming 2 03-28-2005 04:31 PM
get full path of a command (in C) Hady Programming 9 11-21-2003 11:50 AM
Full Path problems chedmaster Linux - Newbie 1 06-26-2003 11:24 AM
How to get executable's full path using C/C++? oldbee Programming 6 02-19-2002 10:21 AM


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

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration