Unix/Lunux MCQ Quiz Hub

Linux Mcqs Questions Set 5

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

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




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




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




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




5. Parameters can be passed to a function




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




7. The keyword local is used




8. Functions improves the shells programmability significantly, because




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




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




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




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




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




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




15. Which expression use the value of the enclosed arithmetic expression?




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




17. Which one of the following is bitwise exclusive or operator?




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




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




20. Which command is used to reexecute the previous command?




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




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




23. What is job number?




24. Ctrl-Z key combination




25. Which command brings a background job into the foreground?




26. kill %s command will




27. stty tostop command will




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




29. Which command sets up shorthand for command or command line?




30. What is the function of bind command in bash shell?




31. The command ‘compgen -c’ shows




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




33. Which command prints the directory stack?




34. The command ‘disown -r’




35. The command ‘enable -n ‘




36. Which command can create environment variable?




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




38. The command hash




39. The ‘logout’ built in command is used to




40. The command umask -S




41. The mapfile command




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




43. Which command removes a directory from directory stack?




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




45. The command ulimit




46. Which command identifies the resource of a command?




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




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




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




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