Exercise : Basic of Linux and Unix MCQ Questions and Answers
Question 1
Which of the following commands is used to have a two-way communication with any person who is currently logged in?
A. |
B. |
C. |
D. |
Correct Answer : D. write
Description :
No answer description available for this question. Let us discuss.
Question 2
Which of the following set options is used with vi editor to ignore case while searching for patterns?
A. |
B. |
C. |
D. |
Correct Answer : D. ic
Description :
No answer description available for this question. Let us discuss.
Question 3
The command to count the number of files in the current directory by using pipes, is
A. |
B. |
C. |
D. |
Correct Answer : A. ls | wc -w
Description :
No answer description available for this question. Let us discuss.
Question 4
In OSI network architecture, the routing is performed by
A. |
B. |
C. |
D. |
Correct Answer : B. session layer
Description :
No answer description available for this question. Let us discuss.
Question 5
What command is used to copy a file?
A. |
B. |
C. |
D. |
Correct Answer : B. cp
Description :
No answer description available for this question. Let us discuss.
Question 6
The 32-bit internet address 10000000 00001010 00000010 00011110 will be written in dotted decimal notation as
A. |
B. |
C. |
D. |
Correct Answer : A. 128.10.2.30
Description :
No answer description available for this question. Let us discuss.
Question 7
Which of the following command is used to access an SMB share on a Linux system?
A. |
B. |
C. |
D. |
Correct Answer : C. smbclient
Description :
No answer description available for this question. Let us discuss.
Question 8
Which command is used to move all files to the bin sub-directory of the parent directory?
A. |
B. |
C. |
D. |
Correct Answer : A. mv * ../bin
Description :
No answer description available for this question. Let us discuss.
Question 9
Which command is used to display and create files?
A. |
B. |
C. |
D. |
Correct Answer : B. cat
Description :
No answer description available for this question. Let us discuss.
Question 10
What port does squid listen, by default?
A. |
B. |
C. |
D. |
Correct Answer : D. 3128
Description :
No answer description available for this question. Let us discuss.