LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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, 06: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, 07:02 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,578

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


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 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 12:56 PM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration