Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    User environment

    Hello users

    How to create a BASH script to setup the user environment (.profile) so the bash prompt includes Hostname,Current working Directory and the Version of bash.

    Note: I don't need anyone to solve my question i need only hints or explanation would be helpful.

    Thank you

  2. #2
    Have a look at Bash Prompt HOWTO.
    Programming and other random guff: cat /dev/thoughts > (previously

  3. #3
    Hi JohnGraham,
    Prompting is not a problem .. the real problem is how to reach the user environment (.profile) ?

  4. $spacer_open
  5. #4
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    In case of new users:
    Have a look at the skeleton section of
    man useradd
    In case of existing and "real" users:
    Ask them to insert it.
    The $HOME is by definition the realm of the person who owns it.

    In case of existing and "system" users:
    Write a one-time script to deploy it.
    You must always face the curtain with a bow.

Posting Permissions

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