Home
Current Affairs January 2024

What is the correct answer?

4

Which exact command is used to display only matched data of two files?

A. comm -13

B. comm -23

C. comm -12

D. None of the above

Correct Answer :

C. comm -12


The 3rd option is correct, because -12 describes, it do not display 1st and 2nd column.

Related Questions

What is the correct answer?

4

Which exact command is used to change the only modification time of a file in the Linux operating system?

A. touch -m

B. touch -k

C. touch -p

D. touch l

What is the correct answer?

4

Which Linux command is used to assign a password to the created user?

A. password

B. newpass

C. passwd

D. pwd

What is the correct answer?

4

Which of the following command is used to change the owner of a file?

A. owner

B. chgown

C. chown

D. changeowner

What is the correct answer?

4

There are the following statements that are given below, which is correct about the SHELL environment variables in Linux operating system?

A. This environment variable is used to execute shell scripts.

B. This environment variable contains the path of shell which is being used by the user.

C. This environment variable contains the path of the compiler which is used for shell script compilation.

D. This environment variable is set by default with the username.

What is the correct answer?

4

What are interfaces are supported by the Linux operating system?

A. Graphical User Interface

B. Command Line Interface

C. Both of the above

D. None of the above

What is the correct answer?

4

Which exact command is used to display only matched data of two files?

A. comm -13

B. comm -23

C. comm -12

D. None of the above

What is the correct answer?

4

Which of the following environment variable is used to specify the number of commands history in the current environment?

A. $HISTSIZE

B. $HISSIZE

C. $HISTORYSIZE

D. $HSIZE

What is the correct answer?

4

Which of the following command is used to change the group owner of a file?

A. group

B. chgroup

C. chown

D. chgrp

What is the correct answer?

4

Which of the following command is used to copy a line in the vi editor?

A. CC

B. cc

C. YY

D. yy

What is the correct answer?

4

Which of the following command is used to forward search for given string in the vi editor?

A. ?string

B. /string

C. string

D. #string

What is the correct answer?

4

What operations are performed when a new user is created?

A. Creates a new home directory for the user

B. The ownership and permissions are assigned to the home directory

C. Both of the above

D. None of the above

What is the correct answer?

4

Which of the following are correct types of shells used in the Linux operating system?
a) Bourne shell
b) Korn shell
c) Bourne Again shell
d) POSIX shell
Options:

A. A and B

B. B and C

C. A, B, and C

D. A, B, C, and D

What is the correct answer?

4

Which run-level is used with the init command to halt the system?

A. 0

B. 1

C. 4

D. 6

What is the correct answer?

4

Which of the following statements are the correct about XXXcomm command?
a) The comm command is used to compare the data of two files.
b) It displays three columns in the output by default.
c) It displays two columns in the output by default.
d) The comm command is used to communicate with the TCP socket.
Options:

A. A

B. B

C. A and B

D. C and D

What is the correct answer?

4

There are the following statements that are given below, which of them are correct about Btrfs File System in Linux?
a) This file system does not use for production purposes.
b) It is used for fault tolerance.
c) It is used for extensive storage configuration.
d) It is used the extended version of JFS.
Options:

A. A and B

B. C and D

C. A, B, and C

D. A, B, C, and D

What is the correct answer?

4

There are the following statements that are given below, which of them are correct about AWK in the Linux operating system?
a) AWK is a scripting language, which is used to perform operations on data and generate reports.
b) The compilation is not required for AWK programs.
c) The compilation is required for AWK programs.
d) We can use logical operators, string functions, and numeric functions in AWK programs.
Options:

A. A and B

B. A and D

C. A, B, and D

D. A, C, and D

What is the correct answer?

4

Which of the following commands are used to kill a running process in the Linux system?
a) kill
b) killall
c) pkill
d) xkill
Options:

A. A and B

B. A, B, and C

C. A, C, and D

D. A, B, C, and D

What is the correct answer?

4

There are the following statements that are given below, which of them are correct about the /var directory in the Linux operating system?
a) This directory contains log files.
b) This directory contains cache files.
c) This directory contains spool files.
d) All the above
Options:

A. A and B

B. A and C

C. B and C

D. D

What is the correct answer?

4

dig stands for?

A. Domain Information Groper

B. Domain Instruction Gist

C. Double Instruction Groper

D. Double Information Groper

What is the correct answer?

4

Which of the following command is used to paste before the current line in the vi editor?

A. y

B. Y

C. p

D. P

What is the correct answer?

4

There are the following options that are given below, which of the following security mechanism are used in the Linux operating system?
a) Authentication
b) Authorization
c) Cryptography
d) All the above
Options:

A. A and B

B. B and C

C. A and C

D. D

What is the correct answer?

4

Which of the following symbol is used to run a background process?

A. #

B. &

C. @

D. $

What is the correct answer?

4

Which of the following directory contains C language header files?

A. /usr/cfiles

B. /usr/include

C. /usr/headers

D. /usr/includes

What is the correct answer?

4

Which of the following operator is used to store the exit code of a previous command?

A. $?

B. %$

C. ?&

D. ?@

What is the correct answer?

4

There are the following options that are given below, which of them are not correct environment variables used in the Linux operating system?

A. USERID

B. ENV

C. EDITOR

D. USER

What is the correct answer?

4

How can we shut down the system immediately using the shutdown command?

A. shutdown immediate

B. shutdown now

C. shutdown n

D. shutdown final

What is the correct answer?

4

Which command is used to pass control of group membership to another user?

A. groupuser

B. gpasswd

C. grouppasswd

D. None of the above

What is the correct answer?

4

Which command is used to cut a file from one location and paste to the other location?

A. cut

B. ct

C. move

D. mv

What is the correct answer?

4

Which of the following information can be displayed using the netstat command?
a) Information about programs related to open socket.
b) Information about routing tables.
c) Statistics about all ports
d) All of the above
Options:

A. A and B

B. B and C

C. A and C

D. D

What is the correct answer?

4

Which of the following statements are the correct about XXXsed command?
a) The sed command is used to display modified data on the console screen, actual data in the file remain the same.
b) The sed command is used to modify the data of a file permanently.
c) The regular expressions are used to display modified data of a file in the sed command.
d) The sed command does not use regular expressions.
Options:

A. A and C

B. A and D

C. B and C

D. B and D