Wednesday 11 June 2014

Commonly Used Shell Variables

echo $BASH_VERSION --holds the version of this instance of bash

echo $HOSTNAME --the name of the your computer

echo $CDPATH --the search path for the cd command

echo $HISTFILE --the file in which command history is saved

echo $HISTFILESIZE --the maximum number of lines contained in the history file

echo $HISTSIZE --the number of commands to remember in the command history

echo $HOME --the home directory of the current user

echo $IFS --the Internal Field Separator

echo $LANG --used to determine the lang

echo $PATH --the search path for commands

echo $PS1 --shows prompt settings
[\u@\h \W]\$

echo $TMOUT --the default timeout for the read builtin command

echo $TERM --the login terminal type
export TERM=vt100
export TERM=xterm

echo $SHELL --set path to login shell

echo $DISPLAY --Set X display name
export DISPLAY=:0.1

export EDITOR=/usr/bin/vim --name of default text editor

No comments:

Post a Comment