Home
Current Affairs January 2024

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

Correct Answer :

B. /usr/include


The /usr/include directory contains C language header files.

Related Questions

What is the correct answer?

4

Which of the following directories does not take disk space?
a) /proc
b) /dev
c) /var
d) /home
Options:

A. A and B

B. A, B, and C

C. A, B, and D

D. A, B, C, and D

What is the correct answer?

4

Which of the following commands is used to create a new user in the Linux operating system?

A. createuser

B. adduser

C. useradd

D. user

What is the correct answer?

4

How to change the normal user to root user using the terminal in the Linux operating system?

A. Using sudo command

B. Using su command

C. Using super command

D. None of the above

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

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

There are the following options that are given below, which of them are correct Linux distributions?
a) Red Hat
b) Ubuntu
c) Arch Linux
d) Fedora
Options:

A. A and B

B. A and D

C. B and D

D. A, B, C, and D

What is the correct answer?

4

Which command is used to check network cable is plugged or not?

A. ifplugstatus

B. ifcableplug

C. ifcablestatus

D. isplugstatus

What is the correct answer?

4

There are the following statements that are given below, which of them are the correct about the service command in the Linux system?
a) The service command is used to start a service by calling the associated script.
b) The service command is used to stop service by calling the associated script.
c) The service command is used to pause a service by calling the associated script.
d) The service command is used to restart a service by calling the associated script.
Options:

A. A and B

B. A, B, and D

C. B, C, and D

D. A, B, C, and D

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 exact command is used to print lines of the file that are not matching to the specific word?

A. grep -v

B. grep -i

C. grep -k

D. grep -n

What is the correct answer?

4

Which Linux command is used to access external storage devices like pen-drive into the Linux file system?

A. attach

B. access

C. mount

D. umount

What is the correct answer?

4

By default, how many last lines shown by tail command?

A. 5

B. 8

C. 10

D. 12

What is the correct answer?

4

Suppose that a text file abc.txt that contains multiple lines, some of the line contains word school. Then how to print only those line who contains school using AWK?

A. awk '/school/ {print}' abc.txt

B. awk -check '/school/ {print}' abc.txt

C. awk -check '/school/ ' abc.txt

D. None of the above

What is the correct answer?

4

Which command is used to check the type of file?

A. type

B. file

C. filetype

D. filetypes

What is the correct answer?

4

In the cut command, a delimiter can be?
a) Hyphen
b) Space
c) Slash
d) All of the above
Options:

A. A

B. B

C. C

D. D

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

Which exact command is used to list the files and directories along with hidden files?

A. ls -l

B. ls -k

C. ls -a

D. ls -n

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 are the types of file owners in the Linux Operating System?
a) User
b) Group
c) Other
d) None of the above
Options:

A. A and B

B. C and D

C. A, B, and C

D. D

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

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 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 of the following commands are external commands in the Linux operating system?
a) cat
b) file
c) help
d) man
Options:

A. A and B

B. C and D

C. A, B, and D

D. A, B, C, and D

What is the correct answer?

4

Which exact command is used to create a user with a specified name for the home directory, here we will create a user with user1 name and name of the home directory will be MyHome?

A. useradd -m /MyHome user1

B. useradd -m -d /MyHome user1

C. useradd -m -h /MyHome user1

D. useraddhome /MyHome user1

What is the correct answer?

4

Which of the following Linux command is used to configure a wireless network interface in the Linux operating system?

A. wirelessconfig

B. wconfiguration

C. iwconfig

D. wwconig

What is the correct answer?

4

Which of the following types of regular expressions are used in the Linux operating system?
a) Basic Regular Expression
b) Extended Regular Expression
c) Crond Regular Expression
d) Perl Regular Expression
Options:

A. A and B

B. A, B, and D

C. A, B, and C

D. A, B, C, and D

What is the correct answer?

4

Which of the following types of arguments or operators are supported by expr command?
a) Plus '+' operator
b) Modulus operator
c) Regular expressions
d) Set of characters in the string
Options:

A. A and C

B. A and B

C. A, B, and C

D. A, B, C, and D

What is the correct answer?

4

The scope of an environment variable can be?

A. Local

B. Global

C. Both

D. None

What is the correct answer?

4

Which of the following commands are used to download files from a specified URL?
a) curl
b) wget
c) filedownload
d) All of the above
Options:

A. A and B

B. A and C

C. B and C

D. D

What is the correct answer?

4

Which of the following symbols are used for a regular expression in the Linux?
a) $
b) ?
c) _
d) +
Options:

A. A and B

B. A, B, and D

C. A, B, and C

D. A, B, C, and D