Unix/Lunux MCQ Quiz Hub

Linux Mcqs Questions Set 5

Choose a topic to test your knowledge and improve your Unix/Lunux skills

How do you remove duplicate lines from the file foo using uniq?





✅ Correct Answer: 1

What is the command that can print lines of first file matching with second file?





✅ Correct Answer: 4

Which character to use to escape meaning of special characters in search operations?





✅ Correct Answer: 4

When the return value of any function is not specified within the function, what function returns?





✅ Correct Answer: 2

Parameters can be passed to a function





✅ Correct Answer: 1

Which of the following command provides the list of the functions defined in the login session?





✅ Correct Answer: 3

The keyword local is used





✅ Correct Answer: 1

Functions improves the shells programmability significantly, because





✅ Correct Answer: 1

In the shell, by default, all variables are considered and stored as





✅ Correct Answer: 1

Which command reads user input from the terminal and assign this value to a variable name?





✅ Correct Answer: 1

Which one of the following statement is true about variables in shell?





✅ Correct Answer: 4

Which one of the following is not a valid shell variable?





✅ Correct Answer: 4

To redefine a variable, it can be removed from the list of variables by using the command





✅ Correct Answer: 1

Which built-in command performs integer arithmetic in bash shell?





✅ Correct Answer: 1

Which expression use the value of the enclosed arithmetic expression?





✅ Correct Answer: 1

If a and b are 2 variables then the meaning of a<<=b is





✅ Correct Answer: 2

Which one of the following is bitwise exclusive or operator?





✅ Correct Answer: 1

Which one of the following is not a valid operator in bash shell?





✅ Correct Answer: 3

This set of Linux / Unix questions and answers focuses on Command History and Job Control in Bash Shell programming fc stands for





✅ Correct Answer: 3

Which command is used to reexecute the previous command?





✅ Correct Answer: 1

Which one of the following is not correct about job control in bash shell?





✅ Correct Answer: 3

Which command allows to view the current jobs being handled by the shell?





✅ Correct Answer: 1

What is job number?





✅ Correct Answer: 2

Ctrl-Z key combination





✅ Correct Answer: 2

Which command brings a background job into the foreground?





✅ Correct Answer: 1

kill %s command will





✅ Correct Answer: 1

stty tostop command will





✅ Correct Answer: 2

Which command terminates a running process by name of the process?





✅ Correct Answer: 3

Which command sets up shorthand for command or command line?





✅ Correct Answer: 2

What is the function of bind command in bash shell?





✅ Correct Answer: 4

The command ‘compgen -c’ shows





✅ Correct Answer: 3

Which statement resumes the next iteration of a for, while, select, or untill loop?





✅ Correct Answer: 1

Which command prints the directory stack?





✅ Correct Answer: 2

The command ‘disown -r’





✅ Correct Answer: 2

The command ‘enable -n ‘





✅ Correct Answer: 2

Which command can create environment variable?





✅ Correct Answer: 1

Which command concatenate the specified argument into a single command, then execute the command?





✅ Correct Answer: 2

The command hash





✅ Correct Answer: 4

The ‘logout’ built in command is used to





✅ Correct Answer: 4

The command umask -S





✅ Correct Answer: 1

The mapfile command





✅ Correct Answer: 1

Which option of the kill command sends the given signal name to the specified process?





✅ Correct Answer: 3

Which command removes a directory from directory stack?





✅ Correct Answer: 2

Which command puts a script to sleep untill a signal is recieved?





✅ Correct Answer: 2

The command ulimit





✅ Correct Answer: 3

Which command identifies the resource of a command?





✅ Correct Answer: 1

Which command wait for the specified process to complete and return the exit status?





✅ Correct Answer: 2

Which command prints the accumulated user and system times for processes run from the shell?





✅ Correct Answer: 2

Which command runs the shell built-in command command with the given argument?





✅ Correct Answer: 1

Which option of the command cd use the actual filesystem path for cd.. and the value of pwd?





✅ Correct Answer: 4