|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
[Solved] PS1 directory path not refreshing...
Hi, I am using Unix, I have added below in the .profile to change my prompt value. Code:
PS1=`logname`@`hostname`:$PWD# The problem is, after changing the directory, path is not being refreshed. Is there anything wrong? Thanks, Milind Last edited by Scott; 01-15-2013 at 08:05 AM.. Reason: Code tags |
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
You need to put that in single quotes: Code:
PS1='....' LOGNAME and HOSTNAME are usually variables, so do you need to "execute" those commands? |
| The Following User Says Thank You to Scott For This Useful Post: | ||
mgpatil31 (01-15-2013) | ||
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
Thanks Scott, it worked by adding single quotes just for PWD command and keeping rest same.
|
| Sponsored Links | ||
|
![]() |
| Tags |
| directory path not refreshing, ksh, prompt, ps1 |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Solved] Add directory to a global PATH | miltonrods | UNIX for Dummies Questions & Answers | 3 | 06-29-2012 10:38 AM |
| [Solved] Help needed to have changing value to the command prompt string variable PS1 | royalibrahim | UNIX for Dummies Questions & Answers | 2 | 04-26-2012 01:46 AM |
| refreshing page | clx | Post Here to Contact Site Administrators and Moderators | 1 | 01-07-2011 07:47 AM |
| Retrieve directory path from full file path through sh | royzlife | Shell Programming and Scripting | 7 | 09-21-2010 08:28 AM |
| PS1 to show relitive path | truma1 | Shell Programming and Scripting | 2 | 07-20-2005 06:10 AM |
|
|