Postman Posted December 1, 2004 Report Share Posted December 1, 2004 (edited) I want to display full path to current directory anyone know how to do it? I only find the \w for current directory... Edited December 1, 2004 by Postman Quote Link to comment Share on other sites More sharing options...
iphitus Posted December 1, 2004 Report Share Posted December 1, 2004 \w will do full path, except if you are in somewhere under your home directory it will do ~/Multimedia/Images/Bla elsewhere except /home/yourname it will do the full expansion. Quote Link to comment Share on other sites More sharing options...
Postman Posted December 1, 2004 Author Report Share Posted December 1, 2004 Ahhh, now I get it....studying until 4 am has it's downsides... trying to process information at that time isn't the smartest thing to do I guess... thanks for the help...! :) Quote Link to comment Share on other sites More sharing options...
aru Posted December 1, 2004 Report Share Posted December 1, 2004 beside iphitus advice you can also have full path in your prompt (w/o home dir restriction) with export PS1='$PWD\$ ' as $PWD is the environ variable that stores current directory hth Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.