Unix interview questions part 23

Unix interview questions part 23

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

Total Questions: 20

1. Which of the following operator is used with find command for performing the negate function?

Correct Answer is : !

2. Which operator is used to specify the AND condition in find command?

Correct Answer is : -a

3. -o operator represents the OR condition.

Correct Answer is : TRUE

4. Which of the following option is used with find command for taking action on selected files?

Correct Answer is : -exec

5. -ok option is used with find command for seeking information before taking the action specified.

Correct Answer is : TRUE

6. Which of the following operators are used for logical execution?

Correct Answer is : && and ||

7. When we use &&, the second command is executed only when first succeeds.

Correct Answer is : TRUE

8. When we use ||, both the commands are executed.

Correct Answer is : FALSE

9. The syntax for using && is ______________

Correct Answer is : cmd1 && cmd2

10. To perform decision depending on the fulfillment of certain criteria, ____ is used.

Correct Answer is : if and else

11. Every if is closed with a corresponding ____

Correct Answer is : fi

12. To check more than two conditions, ___ is used with if-else statements.

Correct Answer is : elif

13. The name of the script is stored in which special parameter?

Correct Answer is : 0

14. Which of the following is not a special parameter used by the shell?

Correct Answer is : $-

15. To know the exit status of a command, we can use ____

Correct Answer is : $?

16. For navigation purposes, the mode should be _____ mode.

Correct Answer is : command

17. Which of the following keys are used to moving the cursor up and down?

Correct Answer is : k and j

18. Which of the following keys is used to moving cursor leftwards along a line?

Correct Answer is : h

19. Which one of the following keys are used to moving cursor rightwards along a line?

Correct Answer is : l

20. We can prefix the repeat factor with navigation keys (h, j, k and l).

Correct Answer is : TRUE

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon