Home
Current Affairs January 2024

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

Correct Answer :

B. rmdir -p


The rmdir -p command is used to remove a directory with its sub-directories.

Related Questions

What is the correct answer?

4

Which of the following command is used to view the content of the compressed file?

A. cat

B. gzip

C. zcat

D. zipcat

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 command is used to remove an existing group?

A. removegroup

B. deletegroup

C. groupdel

D. grouprmv

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 exact command is used to create a user with a specified name for the home directory, here we will create a user with user1 name and name of the home directory will be MyHome?

A. useradd -m /MyHome user1

B. useradd -m -d /MyHome user1

C. useradd -m -h /MyHome user1

D. useraddhome /MyHome user1

What is the correct answer?

4

Which of the following command is used to know about the swap memory of the system?

A. swapmem

B. free

C. sw

D. sp

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

nslookup stands for?

A. Network System lookup

B. Network Server lookup

C. Name Server lookup

D. Next Server lookup

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 of the following terminal command is used to send an email?

A. email

B. mail

C. electronicmail

D. mailcmd

What is the correct answer?

4

What are the basic components of the Linux operating system?
a) Kernel
b) Kernel Modules
c) Shared Libraries
d) User Programs
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

What status is returned on an error by the updatdb command?

A. 0

B. 1

C. 2

D. 3

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

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 of the following character is used for execute permissions in the Linux operating system?

A. e

B. x

C. E

D. None

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

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

There are the following statements that are given below, which of them are the correct about the uptime command in the Linux system?
a) We can get the current system time using uptime command.
b) We can get the number of users logged in, using uptime command.
c) This command also displays CPU load average.
d) This command also displays the duration for which the computer has been running.
Options:

A. A and B

B. B 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 last executed commands list?

A. lastcmd

B. last

C. history

D. chistory

What is the correct answer?

4

Which of the following symbol is used to represent the group of characters?

A. /

B. \

C. +

D. -

What is the correct answer?

4

What is the range of UIDs is reserved for groups and system accounts?

A. 1-50

B. 51-100

C. 100-999

D. 1000-9999

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 command is used to check a Linux command is a built-in shell command or external command?

A. cmdtype

B. type

C. ctype

D. commandtype

What is the correct answer?

4

Which of the following characters are used for wildcards in the Linux operating system?
a) ?
b) *
c) []
d) <> 
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 directories does not take disk space?
a) /proc
b) /dev
c) /var
d) /home
Options:

A. A and B

B. A, B, and C

C. A, B, and D

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 piping in the Linux operating system?
a) The piping the process which is used to redirect the output of one command to another command as an input.
b) We use the pipe (|) operator to perform piping.
c) The piping is not supported in Linux; it works only in the UNIX operating system.
d) None of the above
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 command are used for compressed files?
a) zcat
b) zmore
c) zless
d) zgip
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

There are the following commands that are given below, which of them are correct locate command in the Linux operating system?
a) The locate command is also used to search a file.
b) The locate command searches the file into the database.
c) The locate command slower than find command.
d) The locate command search file in MySQL database only.
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 can we shut down the system by notifying all users?

A. Using init 0 command

B. Using init 6 command

C. Using shutdown command

D. Using turnoff command