Home
Current Affairs January 2024

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

Correct Answer :

B. groups


The groups command is used to know about groups that below to current user.

Related Questions

What is the correct answer?

4

Which exact command is used to change the group of a user in the Linux system?

A. usermod -g

B. usermod -g

C. usermod -c

D. usermod -c

What is the correct answer?

4

Which exact command is used to change from the current directory to the previous directory?

A. cd ..

B. cd ~

C. cd -

D. cd .

What is the correct answer?

4

Which exact command is used to remove a directory with its sub-directories?

A. rmdir -a

B. rmdir -p

C. rmdir -s

D. rmdir -k

What is the correct answer?

4

Which Linux command is used to create an encrypted password?

A. encrypt passwd

B. secure passwd

C. openssl passwd

D. All the above

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

In Linux, the sed stands for?

A. String Editor

B. Stream Editor

C. Simple Editor

D. Single Editor

What is the correct answer?

4

What is the extension of compressed file generated by bzip2 command?

A. .zip2

B. .bz2

C. .b2

D. .z2

What is the correct answer?

4

Which of the following command is known as bang bang in the Linux operating system?

A. ##

B. ,

C. !!

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

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

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 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 Linux distribution does not follow the File Hierarchy System?
a) Ubuntu
b) GoboLinux
c) NixOS
d) Redhat
Options:

A. A and B

B. A and C

C. B and C

D. B and D

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

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

Which exact command is used to display the signal names used in the Linux operating system?

A. signal -all

B. kill -p

C. kill -l

D. kill -s

What is the correct answer?

4

Which of the following symbols are used for a regular expression in the Linux?
a) $
b) ?
c) _
d) +
Options:

A. A and B

B. A, B, and D

C. A, B, and C

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

The Linux Kernel is used to?

A. Manage hardware components

B. Execute user programs

C. Save database files

D. All of the above

What is the correct answer?

4

Which exact command is used to see the calendar of the year 2020?

A. cal 2020

B. cal -y 2020

C. calendar 2020

D. None of the above

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 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 commands are used to display the information about the Linux commands?
a) man
b) info
c) infocmd
d) All the above
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

Which of the following is not a data directory?

A. /mnt

B. /root

C. /home

D. /proc

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 of the following command is used to move up in the vi editor?

A. I

B. h

C. j

D. k

What is the correct answer?

4

Which of the following configuration file is used by updatedb command?

A. /etc/db.conf

B. /etc/locatedb.conf

C. /etc/updatedb.conf

D. /etc/update.conf