Home
Current Affairs January 2024

What is the correct answer?

4

Which of the following operator is used to comment lines in a shell script file?

A. //

B. \

C. /**/

D. #

Correct Answer :

D. #


The # operator is used to comment line in a shell script file.

Related Questions

What is the correct answer?

4

Which of the following statements are correct about whois command?

A. We can get name servers of a website using whois command.

B. The whois command is used to get domain name and registry information for a website.

C. Both of the above

D. None of the above

What is the correct answer?

4

Which option is used to assign permission to directory recursively?

A. -r

B. -R

C. -REC

D. -rec

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 is the full form of MTU?

A. Maximum Transmission Unit

B. Minimum Transmission Unit

C. Multiple Transmission Unit

D. Minimum Transactional Unit

What is the correct answer?

4

Which of the following command is used to search the file(s) within the specified directory?

A. search

B. find

C. fileseach

D. fsearch

What is the correct answer?

4

Which of the following command is used to check a Linux command is a built-in shell command or external command?

A. cmdtype

B. type

C. ctype

D. commandtype

What is the correct answer?

4

Which of the following command is used to delete till the end of the line in the vi editor?

A. $

B. d$

C. d0

D. DD

What is the correct answer?

4

What is the range of UIDs is reserved for groups and system accounts?

A. 1-50

B. 51-100

C. 100-999

D. 1000-9999

What is the correct answer?

4

Which of the following command is used to display the path of a command in the Linux File System?

A. pcmd

B. which

C. pathcmd

D. None of the above

What is the correct answer?

4

Which of the following command is used to delete current line from the file?

A. dd

B. r

C. x

D. X

What is the correct answer?

4

Which of the following command is used to view the content of the compressed file?

A. cat

B. gzip

C. zcat

D. zipcat

What is the correct answer?

4

Which of the following command uses regular expressions in the Linux operating system?
a) grep
b) sed
c) rename
d) bash
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

Which of the following option is used to mention delimiter in the cut command?

A. -del

B. -d

C. -delmiter

D. -delm

What is the correct answer?

4

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

A. usermod

B. userenable

C. userdisable

D. change

What is the correct answer?

4

Which of the following correct tasks that can be done by AWK?
a) We can scan a file line by line using AWK.
b) It is used to transform data files.
c) It is used to perform operations on matched lines.
d) We can produce formatted reports using AWK.
Options:

A. A and B

B. A, C, and D

C. A, B, and D

D. A, B, C, and D

What is the correct answer?

4

Which of the following symbol is used to match exactly one character?

A. $

B. ?

C. _

D. +

What is the correct answer?

4

Which exact command is used to assign all read, write and execute permission to all owners of a file?

A. chmod 7

B. chmod 777

C. chown 777

D. chgrp 777

What is the correct answer?

4

Which exact command is used to change the size of MTU?

A. ifconfig mtu

B. ifconfig mtu

C. ifconfig mtu

D. ifconfig -m

What is the correct answer?

4

Which of the following is not the correct option used with route command?

A. add

B. delete

C. -net

D. -host

What is the correct answer?

4

Which symbol is used with the environment variable name?

A. #

B. @

C. &

D. $

What is the correct answer?

4

Which of the following commands are used to know about the current user?
a) who
b) whoami
c) who am i
d) w
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

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 of them are correct about piping in the Linux operating system?
a) The piping the process which is used to redirect the output of one command to another command as an input.
b) We use the pipe (|) operator to perform piping.
c) The piping is not supported in Linux; it works only in the UNIX operating system.
d) None of the above
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 types of encodings are used by the strings command?
a) 16-bit little endian
b) 16-bit big endian
c) 7-bit byte ASCII
d) None of the above
Options:

A. A and B

B. B and C

C. A, B, and C

D. D

What is the correct answer?

4

Which of the following command is used to display only directories that exist in the current directory?

A. ls l | grep ^d

B. ls | grep ^d

C. ls l | grep #d

D. ls l | grep *d

What is the correct answer?

4

There are the following statements that are given below, which of them are correct types of files in Linux?
a) Executable file
b) Device file
c) Named pipe file
d) Block file
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

Which exact command is used to kill a running process using process id?

A. killall

B. kill -9

C. kill -p

D. kill -s

What is the correct answer?

4

Which command is used to querying DNS to get mapping information about the domain name and IP address?

A. netstate

B. nslookup

C. netinfo

D. domainlookup

What is the correct answer?

4

Who was developed the vi editor?

A. Bill joy

B. James gosling

C. Andy Bechtolseim

D. Scott G. McNealy

What is the correct answer?

4

There are the following statements that are given below, which of them are correct about environment variables in Linux operating system?
a) The environment variables are used to store some values that can be used by the application.
b) The environment variables are used to customize the behavior of the applications.
c) The environment variables can impact the performance of the system.
d) The environment variable used a % symbol for variables.
Options:

A. A and B

B. C and D

C. A, B, and C

D. B, C, and D