Home
Current Affairs January 2024

What is the correct answer?

4

Which of the following symbol is used to match the empty string at the beginning of a word?

A. \

B. %

C. $

D. (

Correct Answer :

A. \


The is used to match the empty string at the beginning of a word.

Related Questions

What is the correct answer?

4

Which of the following environment variables contains the path of the user's unique id?

A. UID

B. USERID

C. USRID

D. ID

What is the correct answer?

4

How to print lines of a given text file from line number 2 to 4 using AWK?

A. awk 'NR==2, NR==4 {print NR,$0}'

B. awk 'NR==2 to NR==4 {print NR,$0}'

C. awk 'NR==2-4 {print NR,$0}'

D. awk 'NR==2,4 {print NR,$0}'

What is the correct answer?

4

Which file contains encrypted user's passwords?

A. /etc/passwords

B. /etc/shadow

C. /etc/pwd

D. /etc/pwds

What is the correct answer?

4

A Linux operating system supports?
a) Multitasking
b) Multiprogramming
c) Multiuser
d) Multithreading
Options:

A. A and C

B. A, C and D

C. A, B, and C

D. A, B, C, and D

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 of the following directories that contain the shared libraries in the Linux System?

A. /sbin

B. /lib

C. /bin

D. /opt

What is the correct answer?

4

Which of the following symbol is used to match preceding character N times or more than N times?

A. (N)

B. (N,)

C. {N}

D. {N,}

What is the correct answer?

4

Which Linux command is used to un-mount the external storage devices from the Linux file system?

A. unmount

B. umount

C. nmount

D. None of the above

What is the correct answer?

4

In which year vi editor was developed?

A. 1976

B. 1980

C. 1982

D. 1988

What is the correct answer?

4

There are the following statements that are given below, which of them are correct about Wildcards in the Linux operating system?
a) Wildcards are the string patterns that contain some special characters.
b) Wildcards are used to perform actions on one or more file that uses the same pattern.
c) Linux shell used wildcard characters for globbing.
d) All the above
Options:

A. A and B

B. A and C

C. A, B, and C

D. D

What is the correct answer?

4

There are the following statements that are given below, which of them are correct about the /sys directory in the Linux operating system?
a) The /sys directory contains kernel related information.
b) The /sys directory contains information about hardware devices.
c) The /sys directory contains user-related information.
d) All the above
Options:

A. A and B

B. A and C

C. B and C

D. B and D

What is the correct answer?

4

Why the double ampersands are used in a regular expression?

A. The double ampersands (&&) are used in regular expression for deleting the specified string.

B. The double ampersands (&&) are used in regular expression for replacing the specified string.

C. The double ampersands (&&) are used in regular expression for searching the specified string.

D. None of the above

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

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 option is used to know only system running time using the uptime command?

A. -p

B. -u

C. -l

D. -k

What is the correct answer?

4

Which exact command is used, remove write, and execute permission from a file?

A. chmod w-x

B. chmod x-w

C. chmod we

D. chmod wx

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

nslookup stands for?

A. Network System lookup

B. Network Server lookup

C. Name Server lookup

D. Next Server lookup

What is the correct answer?

4

Which of the following command is used to compress a directory?

A. gzip

B. dzip

C. tar

D. rat

What is the correct answer?

4

In Linux File System, which symbol is used before filename in case of hidden files?

A. #

B. $

C. Dot (.)

D. @

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

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

What is the correct answer?

4

Which of the following command is used to replace the current character in the vi editor?

A. R

B. rr

C. r

D. rc

What is the correct answer?

4

Which of the following statements are the correct about grep command?
a) This command is used to filter the content of the file.
b) This command is not used to filter the content of the file.
c) We can search the specified word in the file using grep command.
d) There is no grep command that exists in the Linux operating system.
Options:

A. Only A

B. Only A

C. A and B

D. A and C

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 command is used to know about groups that belong to the current user?

A. grouplist

B. groups

C. groupinfo

D. groupinformation

What is the correct answer?

4

Which of the following option is used for a basic regular expression in the grep command?

A. -B

B. -G

C. -P

D. -E

What is the correct answer?

4

Which of the following command is used to print the number of lines that exist in the specified file?

A. awk 'END { print NL }'

B. awk 'END { print N }'

C. awk 'END { print NR }'

D. awk 'END { print NN }'

What is the correct answer?

4

Which of the following command is used to perform mathematical expression and print output on the terminal?

A. expr

B. exp

C. calexp

D. calexpr

What is the correct answer?

4

Which exact command is used to get information about routing tables?

A. netstat -p

B. netstat -s

C. netstat -r

D. None of the above