Home
Current Affairs January 2024

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

Correct Answer :

C. A and B


Statements A and B are correct about comm command in the Linux operating system.

Related Questions

What is the correct answer?

4

Which exact command is used, when we want to add execute permission to all owners of the file?

A. chmod all x

B. chmod ax

C. chmod a+x

D. None of the above

What is the correct answer?

4

Which of the following statements are the correct about XXXwc command?
a) This command is used to count the lines of a file.
b) This command is used to count the words of a file.
c) This command is used to count the characters of a file.
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

What is the full form of JFS?

A. Just File System

B. Journaled File System

C. Joint File System

D. Joker File System

What is the correct answer?

4

In which unit, time passed in sleep command by default?

A. Seconds

B. Minutes

C. Milliseconds

D. Microseconds

What is the correct answer?

4

Which command is used to know information about a password?

A. change

B. knowpass

C. passinf

D. info

What is the correct answer?

4

Which exact command is used to show information about specified interface?

A. ip show

B. ip a show

C. ip b show

D. ip show

What is the correct answer?

4

Suppose that a text file abc.txt that contains multiple lines, then how to print all complete lines with line numbers using AWK?

A. awk '{print NS,$1}' abc.txt

B. awk '{print NR,$0}' abc.txt

C. awk '{print NR,$1}' abc.txt

D. awk '{print NS,$1}' abc.txt

What is the correct answer?

4

Which Linux command is used to create an encrypted password?

A. encrypt passwd

B. secure passwd

C. openssl passwd

D. All the above

What is the correct answer?

4

What is the full form of OFS in AWK?

A. Object Field Separator

B. Obsolete Field Separator

C. Officiated Field Separator

D. Output Field Separator

What is the correct answer?

4

Which of the following character is used for execute permissions in the Linux operating system?

A. e

B. x

C. E

D. None

What is the correct answer?

4

Which exact command is used to disable password for a particular user?

A. usermod -D

B. usermod -d

C. usermod -l

D. usermod -L

What is the correct answer?

4

Which option is used in sort command, if we want to sort the content of the file based on a specific column number?

A. -c

B. -k

C. -n

D. -f

What is the correct answer?

4

There are the following statements that are given below which of them are correct about traceroute in the Linux operating system?
a) It is a network troubleshooting command which is used to trace the number of hops is required for packets to reach the destination.
b) This command requires root privileges.
c) By default, it is not installed in the Linux system
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 exact command is used to multiply 4 by 2 using expr in the Linux System?

A. expr 4 * 2

B. expr 4 /* 2

C. expr 4 * 2

D. expr 4 ^* 2

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 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 command is used to update the database used by the locate command?

A. updatelocate

B. updatelocatedb

C. locatedb

D. updatedb

What is the correct answer?

4

Which of the following are non-standard directories?
a) /lost+found
b) /var
c) /run
d) /cdrom
Options:

A. A and B

B. A 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 cut command?
a) The cut command is used to select a specific column of a file.
b) We can use a delimiter in the cut command to separate the columns of a file.
c) We cannot use a delimiter in the cut command.
d) The cut command is used to move files from one location to another location.
Options:

A. Only A

B. Only B

C. A and B

D. A and C

What is the correct answer?

4

Which of the following option is used in grep command to search specific words from a file by ignoring case?

A. -a

B. -i

C. -c

D. -ing

What is the correct answer?

4

How to print non-empty line from the given file using AWK?

A. awk 'NF > 0'

B. awk 'NF'

C. awk 'NE > 0'

D. awk 'NE'

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

There are the following statements that are given below, which of them are correct about Linux File Hierarchy System?
a) The Linux File Hierarchy System is also known as Linux Root File System.
b) It is a standard that describes the directory and file structure in the operating system.
c) In different distributions of the Linux operating system, the File Hierarchy system can be a little bit different.
d) It describes where the files are located in the operating system.
Options:

A. A and B

B. C and D

C. B, C, and D

D. A, B, C, and D

What is the correct answer?

4

Which command is used to copy a file from one location to another location?

A. copy

B. copyfile

C. cp

D. None of the above

What is the correct answer?

4

What is the default UID of root user in the Linux operating system?

A. 0

B. 1

C. 2

D. 3

What is the correct answer?

4

Which of the following command is not used to extract a compressed file?

A. untar

B. tar

C. gunzip

D. bunzip2

What is the correct answer?

4

Which of the following directories contains binary files?
a) /sbin
b) /lib
c) /bin
d) /var
Options:

A. A and B

B. A and C

C. A, B, and C

D. A, B, C, and D

What is the correct answer?

4

Which command is used to view the specified lines from the start of a file?

A. start

B. head

C. beg

D. first

What is the correct answer?

4

There are the following options that are given below, which of them are the correct environment variable used in the Linux operating system?
a) SHELL
b) TERM
c) PATH
d) HOME
Options:

A. A and B

B. C and D

C. A, C, and D

D. A, B, 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