Find the answer to your Linux question:
Results 1 to 2 of 2
In the ksh shell, it will show the directory where you are (ie.. host:/directory). Better example, if hostname is local, and your in the directory home, the ksh would show: ...
  1. #1
    Just Joined!
    Join Date
    Jul 2007
    Posts
    27

    Shells

    In the ksh shell, it will show the directory where you are (ie.. host:/directory). Better example, if hostname is local, and your in the directory home, the ksh would show: hostname:/home

    Sometimes it's nice for certain people to know where they are on the system.

    So, is there any way to do this in the bash shell?

    Ken

  2. #2
    Just Joined! lx4svr's Avatar
    Join Date
    Jun 2007
    Posts
    19

    bash rc files, and PS1

    You need to research both .bashrc/.bash_profile scripting, and also PS1/bash prompting. Again these are just the first I found on google. I have found some really great tutorials years ago, but I do not remember the links.

    Here are just the first sites I got when googling.
    .bash rc files
    Cool Solutions: Bash - Making use of your .bashrc file

    PS1 prompt/ bash prompt
    Howo: Change / Setup bash custom prompt (PS1)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...