Home
Current Affairs January 2024

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

Correct Answer :

B. chmod 777


Related Questions

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

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 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 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 display the list of available groups in the system?

A. listgroup

B. list

C. getent

D. groups

What is the correct answer?

4

Which of the following directories contains binary files?
a) /sbin
b) /lib
c) /bin
d) /var
Options:

A. A and B

B. A and C

C. A, B, and C

D. A, B, C, and D

What is the correct answer?

4

How to change the normal user to root user using the terminal in the Linux operating system?

A. Using sudo command

B. Using su command

C. Using super command

D. None of the above

What is the correct answer?

4

Which of the following command is used to enable the shell expansion?

A. shell +x

B. shell -x

C. set -x

D. set +

What is the correct answer?

4

There are the following statements that are given below, which of them are correct about touch command in Linux?
a) It is used to create empty files.
b) It is used to update the timestamp of the existing file.
c) It is used to write formatted data into the file.
d) It is used to view the content of the file.
Options:

A. A and B

B. B and C

C. A, B, and C

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 Linux?
a) Linux is system software.
b) Linux is a multitasking operating system.
c) Linux was developed by Dennis Ritchie
d) Linux is an open-source operating system.
Options:

A. A and B

B. B and C

C. A, C, and D

D. A, B, and D

What is the correct answer?

4

Which command is used to remove a file?

A. remove

B. rm

C. rmfile

D. delete

What is the correct answer?

4

What is the full form of JFS?

A. Just File System

B. Journaled File System

C. Joint File System

D. Joker File System

What is the correct answer?

4

Which exact command is used to list the files and directories with the size of the file or directory?

A. ls -l

B. ls -s

C. ls -k

D. ls -h

What is the correct answer?

4

Which of the following symbol is used to match the empty string if it is not at the edge of a word?

A. \

B. >

C. B

D. E

What is the correct answer?

4

There are the following statements that are given below which of them are correct about the tracepath command in the Linux operating system?
a) It is also used for network troubleshooting.
b) This command requires root privileges.
c) By default, it is 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

Which of the following is not the correct option used with route command?

A. add

B. delete

C. -net

D. -host

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

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 start typing at the end of the current line in the vi editor?

A. A

B. a

C. o

D. O

What is the correct answer?

4

Which of the following information can be displayed using the netstat command?
a) Information about programs related to open socket.
b) Information about routing tables.
c) Statistics about all ports
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 that are given below, which of them are correct about GID in the Linux operating system?
a) GID is a group identification number that is used it identify a group in Linux OS.
b) GID is provided by the Linux operating system to the newly created group.
c) GID is provided by the user who created the group in the Linux operating system.
d) GIDs are stored in /etc/group file.
Options:

A. A and B

B. A, B, and D

C. A, B, and C

D. B, C, and 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

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

A. Dot (.)

B. !

C. @

D. $

What is the correct answer?

4

Which command is used to view the specified lines from the start of a file?

A. start

B. head

C. beg

D. first

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 command is used to assign a new name to the Linux built commands?

A. newcmd

B. new

C. alias

D. aliasname

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 commands are used to view the content of file screen wise?
a) more
b) less
c) cat
d) tac
Options:

A. A and B

B. C and D

C. A and C

D. B and C