UNIX (UGC NET)

Unix system administration fundamentals covering shell variables, environment variables, pipelines, user management, and system commands

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which substitution is used for substitute shell variable in Unix?

  1. ${…}
  2. '…'
  3. *
  4. ?
  5. […]
Question 2 Multiple Choice (Single Answer)

Which causes the shell to perform conditional execution of pipelines and the second command is executed only if the first fails in Unix?

  1. and-if &&
  2. or-if ||
  3. seme-colon;
  4. ampersand &
  5. *
Question 3 Multiple Choice (Single Answer)

Which of the following shows content when a user login in the system in Unix?

  1. SHELL
  2. LOGNAME
  3. TERM
  4. PS1
  5. MAIL
Question 4 Multiple Choice (Single Answer)

Which of the following indicates the workstation type being used by a user in Unix?

  1. PATH
  2. PS1
  3. SHELL
  4. TERM
  5. LOGNAME
Question 5 Multiple Choice (Single Answer)

Which contains a string of characters that are used as word separators in the command line in Unix?

  1. PATH
  2. IFS
  3. PS1
  4. SHELL
  5. TERM
Question 6 Multiple Choice (Single Answer)

Which are a means of interconnecting commands together and the output of one command becomes the input to another in Unix?

  1. LOGNAME
  2. TERM
  3. Pipelines
  4. SHELL
  5. PS1
Question 7 Multiple Choice (Single Answer)

Which of the following adds new user information to the file and creates a new home directory for a user in Unix?

  1. # groupadd groupname
  2. # useradd username
  3. #groups username
  4. usermod
  5. PATH
Question 8 Multiple Choice (Single Answer)

Which of the following is a list of directories that a shell uses to locate executable files for commands in Unix?

  1. HOME
  2. SHELL
  3. TERM
  4. LOGNAME
  5. PATH
Question 9 Multiple Choice (Single Answer)

Which of the following creates a new user group and adds new information to /etc/group in Unix?

  1. #useradd username
  2. usermod
  3. #groupadd groupname
  4. TERM
  5. LOGNAME
Question 10 Multiple Choice (Single Answer)

Which of the following is used to modify a group permission of an existing user in Unix?

  1. #useradd username
  2. #groupadd groupname
  3. usermod
  4. TERM
  5. LOGNAME
Question 11 Multiple Choice (Single Answer)

Which of the following is used to know the username before deciding what it should do in Unix?

  1. TERM
  2. SHELL
  3. LOGNAME
  4. PS1
  5. IFS
Question 12 Multiple Choice (Single Answer)

Which of the following is a daemon that executes commands needed to be run regularly according to some schedule in Unix?

  1. Crond
  2. IFS
  3. MAIL
  4. PATH
  5. HOME
Question 13 Multiple Choice (Single Answer)

What is the command in UNIX which lists a user to the group it belongs to?

  1. #groupadd groupname
  2. #groups username
  3. usermod
  4. TERM
  5. LOGNAME
Question 14 Multiple Choice (Single Answer)

Which of the following can be used to create your own custom prompt in Unix?

  1. SHELL
  2. TERM
  3. LOGNAME
  4. PS1
  5. Pipelines
Question 15 Multiple Choice (Single Answer)

Which of the following determines the storage space of all incoming mail addresses to the user?

  1. PS1
  2. SHELL
  3. TERM
  4. MAIL
  5. LOGNAME