GoConqr has a new look! Let us know what you think.

Quiz

Common Shell Environment Variables

Nasir Nawaz 20 questions

Take the quiz

Questions in this quiz (20)

  1. 1This contains the full pathname of the bash command. This is usually /bin/
    bash.
    1. ABASH
    2. BOLDPWD
    3. CPPID
  2. 2This is a number representing the current version of the bash command.
    1. ABASH_VERSION
    2. BTMOUT
    3. CVersion
  3. 3This is the effective user ID number of the current user. It is assigned when
    the shell starts, based on the user’s entry in the /etc/passwd file.
    1. AEUID
    2. BUID
    3. CUser_ID
  4. 4If set, this variable indicates the text editor used by the fc command to edit
    history commands. If this variable isn’t set, the vi command is used.
    1. AFCEDIT
    2. BEDITOR
    3. CCMD_EDIT
  5. 5This is the location of your history fi le. It is typically located at $HOME/.
    bash_history
    1. AHISTFILE
    2. BHISTFILESIZE
    3. CHISTORY_SIZE
  6. 6This returns the number of the current command in the history list.
    1. AHISTCMD
    2. BHISNUM
    3. CHIST
  7. 7This is your home directory. It is your current working directory each time
    you log in or type the cd command with any options.
    1. AHOME
    2. BDIRECTORY
    3. CUSERHOME
  8. 8This is a value that describes the computer architecture on which the Linux
    system is running. For Intel-compatible PCs, the value is i386, i486, i586,
    i686, or something like i386-linux. For AMD 64-bit machines, the value is
    x86_64.
    1. AHOSTTYPE
    2. BHARDWARE
    3. CHOST_INFO
  9. 9This is the location of your mailbox fi le. The fi le is typically your username in
    the /var/spool/mail directory.
    1. AMAIL
    2. BID
    3. CADDRESS
  10. 10This is the directory that was the working directory before you changed to
    the current working directory.
    1. AOLDPWD
    2. BPREVIOUS_PWD
    3. CLASTPWD

Information

Description
The shell itself stores information that may be useful to the user’s shell session in what are called variables. Examples of variables include $SHELL (which identifi es the shell you are using), $PS1 (which defi nes your shell prompt), and $MAIL (which identifi es the location of your mailbox).
Language
English
Views
60
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?