Home
Current Affairs January 2024

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

Correct Answer :

B. gpasswd


The gpasswd command is used to pass control of group membership to another user.

Related Questions

What is the correct answer?

4

Which of the following commands is used to create a new user in the Linux operating system?

A. createuser

B. adduser

C. useradd

D. user

What is the correct answer?

4

Which exact command is used to kill a running process using process id?

A. killall

B. kill -9

C. kill -p

D. kill -s

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

Suppose that a text file abc.txt that contains multiple lines, then how to print all complete lines with line numbers using AWK?

A. awk '{print NS,$1}' abc.txt

B. awk '{print NR,$0}' abc.txt

C. awk '{print NR,$1}' abc.txt

D. awk '{print NS,$1}' abc.txt

What is the correct answer?

4

Which command is used to querying DNS to get mapping information about the domain name and IP address?

A. netstate

B. nslookup

C. netinfo

D. domainlookup

What is the correct answer?

4

Which exact command is used to down interface eth0 in the Linux operating system?

A. ifconfig down eth0

B. ifdown eth0

C. down eth0

D. ifconfig -d eth0

What is the correct answer?

4

There are the following statements that are given below, which of them are correct about Linux File Hierarchy System?
a) The Linux File Hierarchy System is also known as Linux Root File System.
b) It is a standard that describes the directory and file structure in the operating system.
c) In different distributions of the Linux operating system, the File Hierarchy system can be a little bit different.
d) It describes where the files are located in the operating system.
Options:

A. A and B

B. C and D

C. B, C, and D

D. A, B, C, and D

What is the correct answer?

4

What is the full form of GPL in Linux licensing?

A. Global Public License

B. General Private License

C. General Public License

D. Global Private License

What is the correct answer?

4

Which of the following command is used to change the owner of a file?

A. owner

B. chgown

C. chown

D. changeowner

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

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 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 command is used to print the 3rd column of a specified file?

A. awk '{print $3}

B. awk '{print $2}

C. awk '{print $N2}

D. awk '{print $N3}

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 statements are the correct about XXXsort command?
a) This command is used to sort the content of a file in alphabetical order.
b) This command is used to sort the content of a file based on the column.
c) This command is used for numeric sorting bases on the column.
d) None of the Above.
Options:

A. A and B

B. A and C

C. A, B, and C

D. D

What is the correct answer?

4

Which of the following directory contains C language header files?

A. /usr/cfiles

B. /usr/include

C. /usr/headers

D. /usr/includes

What is the correct answer?

4

Which of the following command is used to display the last executed commands list?

A. lastcmd

B. last

C. history

D. chistory

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

dig stands for?

A. Domain Information Groper

B. Domain Instruction Gist

C. Double Instruction Groper

D. Double Information Groper

What is the correct answer?

4

There are the following statements that are given below which of them are correct about cut command?
a) The cut command is used to select a specific column of a file.
b) We can use a delimiter in the cut command to separate the columns of a file.
c) We cannot use a delimiter in the cut command.
d) The cut command is used to move files from one location to another location.
Options:

A. Only A

B. Only B

C. A and B

D. A and C

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

Which command is used to read data from the standard input device and write to the standard output and one or more files?

A. tea

B. tei

C. tie

D. tee

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 exact command is used to assign all read, write and execute permission to all owners of a file?

A. chmod 7

B. chmod 777

C. chown 777

D. chgrp 777

What is the correct answer?

4

There are the following statements that are given below, which of them are correct responsibilities of the kernel?
a) Device management
b) Memory management
c) Creation of user programs
d) Process management
Options:

A. A and B

B. A and C

C. A, B, and C

D. A, B, and D

What is the correct answer?

4

Which of the following signal is used to PAUSE and STOP the processes?

A. SIGSTOP

B. SIGSTP

C. SIGPAUSE

D. SIGPS

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 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 of the following commands are used to know about the current user?
a) who
b) whoami
c) who am i
d) w
Options:

A. A and B

B. C and D

C. A, B, and C

D. A, B, C, and D