Unix interview questions part 11

Unix interview questions part 11

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

Total Questions: 20

1. Which command is used for mapping keys of a keyboard?

Correct Answer is : map

2. /* and f* are same.

Correct Answer is : FALSE

3. For compiling a C program without leaving the editor, which command will be used?

Correct Answer is : :!cc %

4. Which of the following statement is not true?

Correct Answer is : y and yy are same

5. Which command is used for removing/deleting files in UNIX?

Correct Answer is : rm

6. We can delete multiple files using a single rm command.

Correct Answer is : TRUE

7. To delete all files in a directory we use ______________

Correct Answer is : rm *

8. Some files cannot be deleted using rm command because of the permissions associated with it.

Correct Answer is : TRUE

9. Which option is used with rm command for interactive deletion?

Correct Answer is : -i

10. Which option performs recursive deletion?

Correct Answer is : -r and -R

11. Which one of the following command can delete a directory which is not empty?

Correct Answer is : rm -r

12. If we wish to delete a remove a file forcefully, we can use ____ option with rm command.

Correct Answer is : -f

13. Which command is used for removing file named -file.txt?

Correct Answer is : rm — -file.txt

14. Which command is used for renaming files?

Correct Answer is : mv

15. If the destination file does not exists, then mv command creates it.

Correct Answer is : TRUE

16. What if the destination file specified in mv command already exists?

Correct Answer is : it will be overwritten

17. Apart from renaming files, mv command can also

Correct Answer is : move a group of files and rename a directory

18. The inode number associated with a file is changed after renaming it.

Correct Answer is : FALSE

19. Which option is used for backing up destination file in mv command?

Correct Answer is : -b

20. Which option is used with mv command so that the destination file does not get overwritten?

Correct Answer is : -n

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon