Unix interview questions part 39

Unix interview questions part 39

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

1. ____ command is the appropriate way to interrupt a program.

Correct Answer is : trap

2. Which of the following option is used with a set for debugging shell scripts?

Correct Answer is : -x

3. Suppose x =10, then what will be the value of x$x$?

Correct Answer is : x10$

4. Given x=10 then, x$x$ == $x$x. The given statement is ____

Correct Answer is : FALSE

5. A shell script stopped running when we change its name. Why?

Correct Answer is : $0 was used in the script

6. Where is the exit status of a command stored?

Correct Answer is : $?

7. Which of the following is false?

Correct Answer is : $* stores the number of arguments specified

8. test statement cannot ______

Correct Answer is : compare two files

9. ____ option is used with a test for checking if the file exists and has the size greater than zero.

Correct Answer is : -s

10. Every time shift command is used, the leftmost variable is lost.

Correct Answer is : TRUE

11. The UNIX shell is both _______ and _______ language.

Correct Answer is : scripting, interpreter

12. Which of the following function(s) are performed by an interactive shell?

Correct Answer is : job control, history, aliases

13. Every feature used in an interactive shell can also be used by a shell script.

Correct Answer is : FALSE

14. Which one of the following is arguably the best shell to use?

Correct Answer is : Bash

15. Which one of the following command is used to create a child shell?

Correct Answer is : sh

16. Shell variables are of ____ types.

Correct Answer is : 2

17. Suppose ABD_DIR is a local variable. Then it will be accessible to the child process.

Correct Answer is : FALSE

18. ____ command is used to display the environment variables only.

Correct Answer is : env

19. ____ command displays all the variables available in the current shell.

Correct Answer is : set

20. Environment variable names can be defined only in uppercase.

Correct Answer is : FALSE

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon