Find the answer to your Linux question:
Results 1 to 3 of 3
Hai, I would like to know how to configure the unix environment in .profile file. What environment variables i should set inorder to 1. Get the history of the previous ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2004
    Posts
    30

    how to configure user environment in .profile file


    Hai,

    I would like to know how to configure the unix environment in .profile file.
    What environment variables i should set inorder to

    1. Get the history of the previous commands using up, down arrow keys instead of typing the command again and again at the command line"

    2. What is the varibale i should set inorder to recognize the file names in a directory when u start typing the file name at the command prompt. Auto fill for file names using tab key

    I am not sure which variables i should set in .profile file could anybody throw some light on this

    thanks
    sunil[/b]

  2. #2
    Linux Newbie
    Join Date
    Jul 2004
    Location
    Calcutta, India
    Posts
    220
    you'll need to set HISTSIZE and INPUTRC ..
    However, these should have ben done by default, did your /etc/profile got corrupted ??
    Do something like the following :
    Code:
    HISTSIZE=1000
    
    if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
        INPUTRC=/etc/inputrc
    fi
    
    export HISTSIZE INPUTRC

  3. #3
    Just Joined!
    Join Date
    Dec 2004
    Posts
    30
    What has to be set to the parameter $INPUTRC

    thanks
    sunil

Posting Permissions

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