Home
Current Affairs January 2024

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

Correct Answer :

B. A, B, and D


Options A, B, and D are the correct types of regular expressions used in the Linux operating system.

Related Questions

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

What is the full form of ORS in AWK?

A. Output Record Separator

B. Output Record Symbol

C. Output Resumed Symbol

D. Object Record Separator

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 remove a file?

A. remove

B. rm

C. rmfile

D. delete

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

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

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

What status is returned on an error by the updatdb command?

A. 0

B. 1

C. 2

D. 3

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

What is the correct answer?

4

Which command is used to rename the existing group?

A. rename

B. rengroup

C. groupmode

D. groupmod

What is the correct answer?

4

Which exact command is used to remove a user from the group in the Linux system?

A. delgroup d

B. remusr d

C. gpasswd -d

D. rm d

What is the correct answer?

4

Which command is used to print file content in reverse order line wise, it means, the last line will print first and then print the second last line and so on?

A. reverse

B. tac

C. cat

D. gedit

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

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 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 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 commands are used to view the content of file screen wise?
a) more
b) less
c) cat
d) tac
Options:

A. A and B

B. C and D

C. A and C

D. B and C

What is the correct answer?

4

There are the following statements that are given below, which of them are correct about the id command in the Linux operating system?
a) This command describes the user id.
b) This command describes the group id.
c) This command describes the list of groups belongs to the user.
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

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 in the regular expression to remove a complete line from the output of a file using sed command?
a) zcat
b) zmore
c) zless
d) zgip
Options:

A. d

B. del

C. delete

D. rem

What is the correct answer?

4

There are the following statements that are given below which of them are correct about the tracepath command in the Linux operating system?
a) It is also used for network troubleshooting.
b) This command requires root privileges.
c) By default, it is 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 list the files and directories with group id and owner id instead of their names?

A. ls -l

B. ls -n

C. ls -k

D. ls -h

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 mode(s) are used in the vi editor?

A. Insert mode

B. Command mode

C. Both of the above

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 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

There are the following statements that are given below, which of them is correct about Linux kernel?

A. The kernel is the main part of the Linux root file system.

B. The kernel is a core part of OS, which acts as a bridge between hardware and user programs.

C. The kernel is one kind of shell used by system calls.

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 files in Linux?
a) The file can be a text, image, audio, and video file.
b) A device is also represented as a file in the Linux operating system.
c) A directory is also a file.
d) Disk partitions are also represented as a file.
Options:

A. A and B

B. A and C

C. A, B, C, and D

D. B, C, and D

What is the correct answer?

4

Which of the following command is used to move left in vi editor?

A. I

B. h

C. j

D. k

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