Home
Current Affairs January 2024

What is the correct answer?

4

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

A. group

B. chgroup

C. chown

D. chgrp

Correct Answer :

D. chgrp


The chgrp is used to change the group owner of a file.

Related Questions

What is the correct answer?

4

There are the following statements that are given below which of them are correct about traceroute in the Linux operating system?
a) It is a network troubleshooting command which is used to trace the number of hops is required for packets to reach the destination.
b) This command requires root privileges.
c) By default, it is not 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

There are the following statements are given below, which of them are the correct about the ps command in the Linux system?
a) This command is used to display information about processes running in the system.
b) This command displays the memory occupied by a system call.
c) This command displays the process id of the running processes.
d) This command displays the name of the running processes.
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 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 perform mathematical expression and print output on the terminal?

A. expr

B. exp

C. calexp

D. calexpr

What is the correct answer?

4

Which exact command is used to multiply 4 by 2 using expr in the Linux System?

A. expr 4 * 2

B. expr 4 /* 2

C. expr 4 * 2

D. expr 4 ^* 2

What is the correct answer?

4

Which of the following command is used to get brief information about Linux commands and functions?

A. info

B. incmd

C. whatis

D. cmddocs

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

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 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 of the following symbol is used to match the empty string at the beginning of a word?

A. \

B. %

C. $

D. (

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 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 exact command is used to display only matched data of two files?

A. comm -13

B. comm -23

C. comm -12

D. None of the above

What is the correct answer?

4

Which of the following is used to match any set of characters from the specified file in the grep command?

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

There are the following statements that are given below, which of them are correct about /etc/login.defs file in the Linux operating system?
a) In this file, we can define the maximum number of days a password may be used.
b) In this file, we can define the minimum number of days allowed between password changes.
c) In this file, we can also define the minimum and maximum length of the password.
d) There is no /etc/login.defs file exists in the Linux operating system.
Options:

A. A and B

B. A and C

C. A, B and C

D. D

What is the correct answer?

4

How to check the version of the ls command?

A. ls -v

B. ls --v

C. ls -version

D. ls --version

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

There are the following options that are given below, which of them are correct directory types in the Linux operating system?
a) Binary directories
b) Data directories
c) Variable directories
d) Memory directories
Options:

A. A and B

B. A and C

C. A, B, and D

D. A, B, C, and D

What is the correct answer?

4

Which of the following option is used for a basic regular expression in the grep command?

A. -B

B. -G

C. -P

D. -E

What is the correct answer?

4

There are the following statements that are given below, which of them are correct about bang bang command in the Linux operating system?

A. The bang bang command is used to remove commands history.

B. The bang bang command is used to remove execute last executed command.

C. The bang bang command is used to display the last login time of the current user.

D. None of the above

What is the correct answer?

4

By default, which files store output of the command that executed with nohup utility?

A. nh.out

B. nohup.out

C. nohup.txt

D. nh.txt

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

How can we shut down the system immediately using the shutdown command?

A. shutdown immediate

B. shutdown now

C. shutdown n

D. shutdown final

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 command is used to delete current line from the file?

A. dd

B. r

C. x

D. X