| Snaprecruit.com

| Snaprecruit.com

Interview question based on skill :

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

Total Questions: 20

1. What is the function of cp command in UNIX?

Correct Answer is : cp is a command used for copying files and directories

2. What happens if the destination file specified in cp command does not exist?

Correct Answer is : destination file will be automatically created

3. Which of the following is not an option of cp command?

Correct Answer is : -z

4. What is the correct syntax for copying multiple files with a filename starting as ‘file’ into another file named as ‘directory_one’?

Correct Answer is : cp file* directory_one

5. How can we copy an entire directory under another directory?

Correct Answer is : using -R option

6. How can we copy a file into our current directory?

Correct Answer is : cp file1

7. What does the following command do? cp -u * dir_file

Correct Answer is : update all files in the current working directory and copy newer ones to directory dir_file

8. Sometimes it is not possible to copy a file.

Correct Answer is : TRUE

9. What does -i option do?

Correct Answer is : interactive copying

10. To copy multiple files, the last destination file should be a directory.

Correct Answer is : TRUE

11. -n option is used with cp command for what purpose?

Correct Answer is : existing file should not be overwritten

12. Which option is used with cp command for linking files instead of copying?

Correct Answer is : -l

13. $ cp -f copies forcefully.

Correct Answer is : TRUE

14. -v option is used with cp command for displaying _____

Correct Answer is : informative messages

15. Which command is used for counting words, lines and characters in a file?

Correct Answer is : wc

16. wc command cannot take multiple filenames as arguments.

Correct Answer is : FALSE

17. Which option is used for counting the number of lines in a file only.

Correct Answer is : -l

18. Which option is used for counting the number of words in a file only?

Correct Answer is : -w

19. Which option is used for counting the number of characters in a file only.

Correct Answer is : -c

20. wc command can also work on a data stream.

Correct Answer is : TRUE