Home
Current Affairs January 2024

What is the correct answer?

4

To delete an user along with its home directory, the command is

A. userdel -d username

B. userdel -D username

C. userdel -r username

D. userdel -R username

Correct Answer :

C. userdel -r username


Related Questions

What is the correct answer?

4

To give all permission to a file to all users the command is
all of the above

A. chmod a+777 file

B. chmod a+rwx file

C. chmod ugo+7 file

D. none of the above

What is the correct answer?

4

-wxrwx-x is equivalent to

A. 567

B. 675

C. 571

D. 672

What is the correct answer?

4

The X-Window system in Linux is a

A. program development environment

B. graphical user interface

C. tool to connect Linux with Windows

D. none of the above

What is the correct answer?

4

To create multiple directories in one shot ________ is used

A. mkdir

B. mkdir -a

C. mkdir -p

D. mkdir -h

What is the correct answer?

4

To remove a directory which is not empty ____ is used

A. rmdir

B. rmdir -r

C. rm -r

D. rm

What is the correct answer?

4

If there is any problem with the command, the error is given by

A. Kernel

B. Shell

C. root

D. None of the above

What is the correct answer?

4

The symbol of wildcard(s) is

A. w

B. `

C. ? *

D. None of the above.

What is the correct answer?

4

The type of shell mostly used for Linux is

A. bash

B. korn

C. bourne

D. C-shell

What is the correct answer?

4

To change the ownership of a file use

A. chmod

B. chgrp

C. chown

D. change

What is the correct answer?

4

Linux kernel file name is

A. vmlinux

B. vmlinuz

C. lynx

D. linux

What is the correct answer?

4

_______ is used to change the file/folder permission

A. chown

B. chmod

C. mod

D. chgrp

What is the correct answer?

4

Read & Write permission means

A. 1

B. 6

C. 2

D. 0

What is the correct answer?

4

Linux mount partition must be a primary partition

A. True

B. False

What is the correct answer?

4

Output of 'sort > shoppinglist' is

A. Sorting file but not save in file.

B. Without sorting but save in file.

C. Sorting and save in a file.

D. All of the above.

What is the correct answer?

4

Which command is used for character translation?

A. td

B. vi

C. tr

D. tail

What is the correct answer?

4

Samba password and user password are same

A. True

B. False

What is the correct answer?

4

The encrypted password is stored in which field of /etc/password file ?

A. first

B. second

C. third

D. last

What is the correct answer?

4

User passwords are stored in

A. /etc/password

B. /root/password

C. /etc/passwd

D. /root/passwd

What is the correct answer?

4

There can be only ----- job in foreground.

A. 1

B. 2

C. 3

D. 4

What is the correct answer?

4

________ gives information about an user

A. who

B. who am i

C. who -i

D. None of the above

What is the correct answer?

4

Home directory of root is

A. /home

B. /bin

C. /root

D. /boot

What is the correct answer?

4

sort file, will sort the contents of the file and the effect will be reflected in the file

A. True

B. False

What is the correct answer?

4

To get information about the Ethernet card, ___________ command is used

A. ipconfig

B. ifconfig

C. eth0

D. man Ethernet

What is the correct answer?

4

All run levels are stored in

A. /etc/fstab

B. /etc/init

C. /etc/inittab

D. /etc/rc.d

What is the correct answer?

4

Which command is used to compare files?

A. cmp

B. diff

C. head

D. All of these

What is the correct answer?

4

Shell is a

A. Program

B. Hardware

C. Account

D. None of the above

What is the correct answer?

4

wc -l will give the

A. Number of lines

B. Number of characters

C. Number of words

D. All of the above

What is the correct answer?

4

Samba is actually a

A. Share

B. File server

C. File

D. None of the above

What is the correct answer?

4

ls j?e - output will be

A. Filenames with 3 charcter

B. Filenames with 4 charcter

C. Filenames with 5 charcter

D. Filenames with 10 charcter

What is the correct answer?

4

To setup a Firewall, the command is

A. ntsysv

B. setup

C. /etc/firewall

D. /etc/install