

MCQOPTIONS
Saved Bookmarks
This section includes 25 Mcqs, each offering curated multiple-choice questions to sharpen your Unix knowledge and support exam preparation. Choose a topic below to get started.
1. |
Which of the following is not an internal command for more? |
A. | q |
B. | f |
C. | b |
D. | z |
Answer» E. | |
2. |
UNIX offers a pager named ____ which has replaced the original pager of UNIX called ____ |
A. | more, less |
B. | less, more |
C. | more, pg |
D. | pg, more |
Answer» D. pg, more | |
3. |
file command identifies the file type by examining the magic number of the file. |
A. | True |
B. | False |
Answer» B. False | |
4. |
Which command is used for knowing the file type? |
A. | file |
B. | type |
C. | filetype |
D. | type of file |
Answer» B. type | |
5. |
-t option prints the title on the first page. |
A. | True |
B. | False |
Answer» B. False | |
6. |
Which option is used for printing multiple copies of a file using lp command? |
A. | -l |
B. | -i |
C. | -t |
D. | -n |
Answer» E. | |
7. |
Which option is used with lp command if there are more than one printers in the system? |
A. | -t |
B. | -d |
C. | -i |
D. | -p |
Answer» C. -i | |
8. |
Which command is used for printing a file? |
A. | lp |
B. | pr |
C. | pg |
D. | more |
Answer» B. pr | |
9. |
What does the following command do? |
A. | reads word count from sample.txt |
B. | reads word count from newfile |
C. | reads word count from sample.txt and write it to newfile |
D. | error is producedView Answer |
Answer» D. error is producedView Answer | |
10. |
wc command can also work on a data stream. |
A. | True |
B. | False |
Answer» B. False | |
11. |
Which option is used for counting the number of characters in a file only. |
A. | -l |
B. | -W |
C. | -c |
D. | -w |
Answer» D. -w | |
12. |
Which option is used for counting the number of words in a file only? |
A. | -l |
B. | -W |
C. | -c |
D. | -w |
Answer» E. | |
13. |
Which option is used for counting the number of lines in a file only. |
A. | -l |
B. | -W |
C. | -c |
D. | -w |
Answer» B. -W | |
14. |
wc command cannot take multiple filenames as arguments. |
A. | True |
B. | False |
Answer» C. | |
15. |
Which command is used for counting words, lines and characters in a file? |
A. | diff |
B. | count |
C. | man |
D. | wc |
Answer» E. | |
16. |
WHICH_OF_THE_FOLLOWING_IS_AN_ARCHIVAL_PROGRAM??$ |
A. | arch |
B. | archive |
C. | ar |
D. | tar |
Answer» E. | |
17. |
Which of the following is a better agent than gzip? |
A. | bzip2 |
B. | bzip2 and bunzip2 |
C. | bunzip2 |
D. | allzip |
Answer» C. bunzip2 | |
18. |
We can provide multiple filenames as arguments to gunzip? |
A. | True |
B. | False |
Answer» B. False | |
19. |
We cannot uncompress files using gzip. |
A. | True |
B. | False |
Answer» C. | |
20. |
Which of the following is used for decompressing files? |
A. | GZIP |
B. | gunzip |
C. | uncmp |
D. | cmp |
Answer» C. uncmp | |
21. |
Which option is used with gzip command for recursive compression? |
A. | -c |
B. | -l |
C. | -d |
D. | -r |
Answer» E. | |
22. |
We can provide original filenames without .gz extension while checking compression ratio using gzip – l?$ |
A. | True |
B. | False |
Answer» B. False | |
23. |
Which option is used with gzip command to check compression ratio for files? |
A. | -l |
B. | -c |
C. | -e |
D. | -x |
Answer» B. -c | |
24. |
Which one of the following extension is provided by gzip to the compressed filename? |
A. | .cm |
B. | .gz |
C. | .zip |
D. | .zp |
Answer» C. .zip | |
25. |
Which of the following is used to compress files? |
A. | cmp |
B. | gzip |
C. | gunzip |
D. | comm |
Answer» C. gunzip | |