Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Sharing Knowledge Linux (RHEL8)

Total questions: 15

Worksheet time: 3mins

Name
Class
Date
1.

How to change the shell for user.?

a)

Usermod -s

b)

User -k

c)

Usermod -S

d)

None of these

2.

Which is the file consist group information.?

a)

/etc/group

b)

/etc/shadow

c)

/etc/gshadow

d)

/etc/groupinfo

3.

Which command is used for adding a new user.?

a)

Add user

b)

Useradd

c)

Usermod

d)

Userplus

4.

Which command is used for delete all credential of user1?

a)

Userdel user1

b)

Userdel -r user1

c)

Userdel -all user1

d)

None of these

5.

Which command is used to change the password of user.?

a)

Password

b)

Passwd

c)

Paswd

d)

Pass

6.

What is the use of chmod command.?

a)

To set permission

b)

To create link

c)

To check contents of Directory

d)

None of these

7.

How to add user1 in to the  sysadmin group.?

a)

Groupadd user1 sysadmin

b)

Gpasswd -a sysadmin user1

c)

Gadd user1 sysadmin

d)

Gpasswd -a user1 sysadmin

8.

How to append data in to the file.?

a)

Cat>>file

b)

Cat>file

c)

Cat

d)

None of these

9.

How to add these user in to the sysadmin group.?user1 , user2 , user3

a)

Gpasswd -a user1 user2 user3

b)

Gpasswd -m user1 user2 user3

c)

Gpasswd -M user1 user2 user3

d)

Gpasswd -all user1 user2 user3

10.

Which command is used to check the content of directory.?

a)

Li

b)

List

c)

Lsdir

d)

Ls

11.

What will happen if we run this command.?#touch file{1..10}

a)

It create file with name file{1..10}

b)

It create 10 files

c)

Error

d)

None of these

12.

How to Lock the user.?

a)

Usermod -l user

b)

Usermod -L user

c)

Userlo user

d)

Usermod -a user

13.

For permanent mount /etc/ is the file.

(a)  

14.

Match the following

a)

execute

1.

1

b)

no permission

2.

0

c)

write

3.

2

d)

read

4.

4

15.

How to formate the swap partition.?

a)

Swapformate

b)

Mkswap

c)

Mkfs

d)

None of these