not showing full path after login

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dillipkumar
    New Member
    • Mar 2008
    • 41

    not showing full path after login

    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
  • vituko
    New Member
    • Dec 2006
    • 48

    #2
    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

    Comment

    • dillipkumar
      New Member
      • Mar 2008
      • 41

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

      Regards,
      DK

      Comment

      • vituko
        New Member
        • Dec 2006
        • 48

        #4
        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...

        Comment

        Working...