Connecting Tech Pros Worldwide Forums | Help | Site Map

not showing full path after login

Member
 
Join Date: Mar 2008
Posts: 32
#1: Jan 29 '09
Hi,

after connecting to Linux server instead of showing "/user/ux/dks $" it is showing only "$" only .

Details:
flavour: Linux
default shell is ksh

Can anybody help me what is the exact problem.

Thanx

Member
 
Join Date: Dec 2006
Location: Spain, Galiza, Ferrol
Posts: 48
#2: Jan 29 '09

re: not showing full path after login


In BASH, the prompt is defined throw two variables : $PS1 (static) and $PROMPT_COMMAND (dynamic)... Man bash and search for prompting, prompt_command,... No idea about ksh
Member
 
Join Date: Mar 2008
Posts: 32
#3: Jan 30 '09

re: not showing full path after login


I exported the export PS1='${PWD} !' after also it is not showing the full path.

Regards,
DK
Member
 
Join Date: Dec 2006
Location: Spain, Galiza, Ferrol
Posts: 48
#4: Jan 30 '09

re: not showing full path after login


Ok, in bash it works. And googling it should also work in ksh... try echoing $PS1. Ksh sounds nice (associative arrays, floats,...), but bash is the default shell in most distros, you can try usermod -s to set bash as your login shell...
Reply