Home
Current Affairs January 2024

What is the correct answer?

4

Which of the following directories are known as data directories?
a) /srv
b) /media
c) /home
d) /opt
Options:

A. A and B

B. A, B, and C

C. B, C, and D

D. A, B, C, and D

Correct Answer :

B. A, B, and C


The /home, /srv, and /media directories are data directories.

Related Questions

What is the correct answer?

4

Which command is used to rename a file?

A. rename

B. ren

C. name

D. None of the above

What is the correct answer?

4

Which of the following built-in variable is used that contains the name of the specified file in the AWK command?

A. NAME

B. FILENAME

C. FNAME

D. FN

What is the correct answer?

4

Which exact command is used to kill a process by name?

A. killall

B. kill -n

C. kill -p

D. kill -s

What is the correct answer?

4

Which of the following command is used to display and manipulate routing tables in the Linux operating system?

A. routepath

B. routetable

C. route

D. alterroute

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

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

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 command is used to get information about the File Hierarchy System?

A. man rfs

B. man hier

C. man hfs

D. man fhs

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 configure a public key at the SSH server for a user?

A. ssh-copy-id

B. ssh-public-key

C. ssh-public-id

D. ssh-copy-key

What is the correct answer?

4

Which of the following command is used to undo the last command in the vi editor?

A. uu

B. x

C. X

D. u

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

There are the following statements that are given below, which of them are correct about Btrfs File System in Linux?
a) This file system does not use for production purposes.
b) It is used for fault tolerance.
c) It is used for extensive storage configuration.
d) It is used the extended version of JFS.
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 Linux command is used to remove the value of an environment variable?

A. removeenv

B. remove

C. unset

D. delete

What is the correct answer?

4

Which of the following command is used to rename the file names that contain text with txt in the current directory?

A. rename 'r/txt/text' *

B. rename 'e/text/txt' *

C. rename 's/txt/text' *

D. rename 's/text/txt' *

What is the correct answer?

4

Which of the following Linux command is used to transfer files to the remote computer?

A. cp

B. copy

C. ssh-copy

D. scp

What is the correct answer?

4

There are the following statements that are given below, which of them are correct system libraries in Linux operating system?
a) System libraries are a special program.
b) We can use kernel functionalities using system libraries.
c) System libraries are user programs.
d) System libraries used system calls.
Options:

A. A and B

B. B and C

C. A, B, and D

D. A, B, and C

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 are the correct about the last command in the Linux system?
a) This command displays the information about the last logged in timing for the user.
b) The last command is used to display the last executed process in the system.
c) This command displays IP address, username, and duration of logging in.
d) The log information is stored in the /var/log/wtmp file.
Options:

A. A and B

B. A, B, 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 the /var directory in the Linux operating system?
a) This directory contains log files.
b) This directory contains cache files.
c) This directory contains spool files.
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 command is used to compress a file?

A. zip

B. gzip

C. ezip

D. mzip

What is the correct answer?

4

Which of the following Linux command is used to set values in environment variables?

A. setval

B. setenv

C. export

D. env

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

How can we shut down the system by notifying all users?

A. Using init 0 command

B. Using init 6 command

C. Using shutdown command

D. Using turnoff command

What is the correct answer?

4

Which of the following command is used to move one word forward in the vi editor?

A. b

B. ww

C. w

D. yw

What is the correct answer?

4

Which of the following command is used to extract text from binary or executable files in the Linux operating system?

A. strings

B. string

C. str

D. strbin

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

There are the following statements that are given below, which of them are correct about the Linux File System?
a) File System is a layer in the Linux operating system, which is used to control the management of storage data.
b) It provides the arrangement of files in the disk storage.
c) It is used to manage information about files like name, size, creation, and modification time.
d) Linux File System is the software that runs only on Intel architecture.
Options:

A. A and B

B. C and D

C. A, B, and C

D. A, B, C, and D