LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-16-2012, 02:10 AM   #1
Phoenix_Swelter
LQ Newbie
 
Registered: Feb 2011
Posts: 12

Rep: Reputation: 0
Want to get real path rather than virtual path


I have a partition that I have mounted, and I access it through a link to my home directory. What I want to do is have a script that is using the virtual path to recognize the real path.

So if I have $HOME/mydirectory/ that is linked to /mnt/mypartition/, how can I get my script running in $HOME/mydirectory to recognize that its actual path is /mnt/mypartition ?
 
Old 10-16-2012, 02:12 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Try using pwd -P to get the physical path.
 
1 members found this post helpful.
Old 10-17-2012, 02:46 AM   #3
Phoenix_Swelter
LQ Newbie
 
Registered: Feb 2011
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by druuna View Post
Try using pwd -P to get the physical path.
Thank-you, thank-you, thank-you - that is precisely what I needed!

Solved!
 
  


Reply

Tags
path, virtual


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
[SOLVED] How to get the absolute path of the running executable file and current work path ? 915086731 Programming 3 11-01-2011 09:28 AM
bash script path issue - how to pass a path as a string to a variable PiNPOiNT Programming 5 04-17-2009 05:48 PM
Real Player 10 Installation Path for Suse 9.1? metersmit Linux - Newbie 1 06-03-2006 06:24 PM
Real Player path Gins Linux - General 20 09-26-2005 05:20 PM
Ideal path for installing real player. D3javu Linux - Newbie 1 02-05-2005 06:59 AM


All times are GMT -5. The time now is 08:07 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration