MCQs > IT & Programming > Unix MCQs > Basic Unix MCQs

Basic Unix MCQ

1. Unix and linux are ____ systems, which allow one user to execute more than one program at a time.

Answer

Correct Answer: Multitasking

Note: This Question is unanswered, help us to find answer for this one

2. If you execute ____, the contents of file1 are sorted and the results are stored in file2.

Answer

Correct Answer: Sort file1 > file2

Note: This Question is unanswered, help us to find answer for this one

3. To display the contents of a file called data, use the command ____.

Answer

Correct Answer: Is

Note: This Question is unanswered, help us to find answer for this one

4. To append output to an existing file, you use ____.

Answer

Correct Answer: Output Redirection

Note: This Question is unanswered, help us to find answer for this one

5. Freebsd is a(n) _____-based operating system.

Answer

Correct Answer: UNIX

Note: This Question is unanswered, help us to find answer for this one

6. The ____ command removes duplicate lines from a file.

Answer

Correct Answer: Uniq

Note: This Question is unanswered, help us to find answer for this one

7. Unix uses the ____ page replacement algorithm.

Answer

Correct Answer: Least recently used

Note: This Question is unanswered, help us to find answer for this one

8. Unix uses a ____ to keep track of which processes are using shared program code.

Answer

Correct Answer: Text table

Note: This Question is unanswered, help us to find answer for this one

9. Unix is called a(n) ___________ operating system because it can run on a desktop pc or a server.

Answer

Correct Answer: Multi-purpose

Note: This Question is unanswered, help us to find answer for this one

10. Unix and linux are operating systems designed to run on ________.

Answer

Correct Answer: Server

Note: This Question is unanswered, help us to find answer for this one

11. In unix/linux, text files and binary files are considered to be ____ files.

Answer

Correct Answer: Regular

Note: This Question is unanswered, help us to find answer for this one

12. ____ is not a selection command.

Answer

Correct Answer: Sed

Note: This Question is unanswered, help us to find answer for this one

13. What is the user id of a root user?

Answer

Correct Answer: .0

Note: This Question is unanswered, help us to find answer for this one

14. Which command is used for changing the ownership of a file or directory?

Answer

Correct Answer: chown

Note: This Question is unanswered, help us to find answer for this one

15. Which command prints the current working directory ?

Answer

Correct Answer: Pwd

Note: This Question is unanswered, help us to find answer for this one

16. Which key combination instructs the shell to terminate the session ?

Answer

Correct Answer: ctrl + d

Note: This Question is unanswered, help us to find answer for this one

17. The UNIX command

Answer

Correct Answer: In the background

Note: This Question is unanswered, help us to find answer for this one

18. The command to take a backup of files and directories on magnetic tape is:

Answer

Correct Answer: tar -xv

Note: This Question is unanswered, help us to find answer for this one

19. Which of the following statements is incorrect regarding processes ?

Answer

Correct Answer: .More than one process can be active even if there is only one processor.

Note: This Question is unanswered, help us to find answer for this one

20. Which of the following statements is not true regarding the grep filter?

Answer

Correct Answer: grep can be used without specifying a regular expression.

Note: This Question is unanswered, help us to find answer for this one

21. The command to restore files and directories from magnetic tape is :

Answer

Correct Answer: tar -cv

Note: This Question is unanswered, help us to find answer for this one

22. Which command will you use to see the available routes and their status?

Answer

Correct Answer: netstat -rn

Note: This Question is unanswered, help us to find answer for this one

23. Which of the following commands can be used to see the detailed information on how to use a particular command?

Answer

Correct Answer: $ man

Note: This Question is unanswered, help us to find answer for this one

24. What communication command provides communication to another user logged on by writing to the bottom of their terminal ?

Answer

Correct Answer: write

Note: This Question is unanswered, help us to find answer for this one

25. The shell variable that defines internal field separator is.

Answer

Correct Answer: IFS

Note: This Question is unanswered, help us to find answer for this one

26. Which of the following commands will you use to send the contents of a file named abc to a user named Raven by mail?