Home
Current Affairs January 2024

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

Correct Answer :

B. /etc/shadow


The /etc/shadow file contains encrypted user's passwords.

Related Questions

What is the correct answer?

4

How can we view and add content in the kernel ARP table?

A. arpmod

B. arpalter

C. arptable

D. arp

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

Which symbol is used with the environment variable name?

A. #

B. @

C. &

D. $

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 of the following Linux command is used to print all environment variables?

A. printenv

B. env

C. envvars

D. envs

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 of the following command is used to move to the last line in the file?

A. G

B. K

C. Dot (.)

D. ``

What is the correct answer?

4

Which of the following command is used to add a key to the SSH agent?

A. agent

B. ssh-agent

C. add-key

D. ssh-add

What is the correct answer?

4

Which of the following command is not used to extract a compressed file?

A. untar

B. tar

C. gunzip

D. bunzip2

What is the correct answer?

4

Which command is used to execute a command based on the number assigned in the command history, here we denote command history number by N?

A. !N

B. #N

C. $N

D. !!N

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

What is the correct answer?

4

Which of the following command is used to replace the specific word, for example we want to replace inclusion by exclusion?

A. echo inclusion | sed 's/in/ex'

B. echo inclusion | sed 's/ex/in'

C. echo inclusion | sed 'r/in/ex'

D. echo inclusion | sed 'R/in/ex'

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 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 find files whose permissions are 765 in the current directory?

A. find . -perm 765

B. find . -per 765

C. find . -p 765

D. find . -prm 765

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 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 exact command is used, when we want to add execute permission to all owners of the file?

A. chmod all x

B. chmod ax

C. chmod a+x

D. None of the above

What is the correct answer?

4

Which of the following commands are used to create files in the Linux Operating System?
a) cat
b) echo
c) touch
d) printf
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 quit with discarding changes from the vi editor?

A. :q

B. :Q

C. ZZ

D. :q!

What is the correct answer?

4

Which run-level is used with the init command to reboot the system?

A. 0

B. 1

C. 4

D. 6

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 option is used in grep command to search specific words from a file by ignoring case?

A. -a

B. -i

C. -c

D. -ing

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

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

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

Which command is used to see what permissions will be provided to the newly created file by default?

A. default

B. unmask

C. permissions

D. defperm

What is the correct answer?

4

Which command is used to get the path of the current directory?

A. cdir

B. dir

C. pwd

D. pdir

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

If we want to assign read and execute permission to the file then which number is used in the chmod command to assign permission?

A. 5

B. 6

C. 7

D. 3