UNIX (UGC NET)
Unix system administration fundamentals covering shell variables, environment variables, pipelines, user management, and system commands
Questions
Which substitution is used for substitute shell variable in Unix?
- ${…}
- '…'
- *
- ?
- […]
Which causes the shell to perform conditional execution of pipelines and the second command is executed only if the first fails in Unix?
- and-if &&
- or-if ||
- seme-colon;
- ampersand &
- *
Which of the following shows content when a user login in the system in Unix?
- SHELL
- LOGNAME
- TERM
- PS1
- MAIL
Which of the following indicates the workstation type being used by a user in Unix?
- PATH
- PS1
- SHELL
- TERM
- LOGNAME
Which contains a string of characters that are used as word separators in the command line in Unix?
- PATH
- IFS
- PS1
- SHELL
- TERM
Which are a means of interconnecting commands together and the output of one command becomes the input to another in Unix?
- LOGNAME
- TERM
- Pipelines
- SHELL
- PS1
Which of the following adds new user information to the file and creates a new home directory for a user in Unix?
- # groupadd groupname
- # useradd username
- #groups username
- usermod
- PATH
Which of the following is a list of directories that a shell uses to locate executable files for commands in Unix?
- HOME
- SHELL
- TERM
- LOGNAME
- PATH
Which of the following creates a new user group and adds new information to /etc/group in Unix?
- #useradd username
- usermod
- #groupadd groupname
- TERM
- LOGNAME
Which of the following is used to modify a group permission of an existing user in Unix?
- #useradd username
- #groupadd groupname
- usermod
- TERM
- LOGNAME
Which of the following is used to know the username before deciding what it should do in Unix?
- TERM
- SHELL
- LOGNAME
- PS1
- IFS
Which of the following is a daemon that executes commands needed to be run regularly according to some schedule in Unix?
- Crond
- IFS
- MAIL
- PATH
- HOME
What is the command in UNIX which lists a user to the group it belongs to?
- #groupadd groupname
- #groups username
- usermod
- TERM
- LOGNAME
Which of the following can be used to create your own custom prompt in Unix?
- SHELL
- TERM
- LOGNAME
- PS1
- Pipelines
Which of the following determines the storage space of all incoming mail addresses to the user?
- PS1
- SHELL
- TERM
- MAIL
- LOGNAME