wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

linux user and group dfn30053

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.

What is the name of the file in which details of user accounts are stored?

a)

/etc/uac

b)

/etc/accounts

c)

/etc/passwd

d)

/etc/shadow

2.

What two commands are used to add and remove users respectively?

a)

usermod / userdom

b)

useradd / userdel

c)

usermod / moduser

d)

mkuser / rmuser

3.

What file stores information about groups on Linux systems?

a)

/etc/group

b)

/etc/groupon

c)

/etc/groups

d)

/etc/members

4.

show information about the current logged in user

a)

id

b)

ids

c)

id user

d)

id username

5.

file for checking if user was created

a)

/etc/passwd

b)

/etc/password

c)

/etc/user

d)

/etc/group

6.

file for checking if user has passwords

a)

/etc/users

b)

/etc/shadow

c)

/etc/all

d)

/etc/group

7.

show information about a user

a)

id username

b)

ids username

c)

info username

d)

info user

8.

Which command changes deepak’s home directory from its default location to /usr/local directory? (select 1)

a)

usermod -d /usr/local deepak

b)

usermod -g /usr/local deepak

c)

usermod -l /usr/local deepak

d)

usermod -a /usr/local deepak

9.

What is the command to delete the home directory of user along with the user?

a)

# userdel <username>

b)

# userdel -l <username>

c)

# userdel -r <username>

d)

# userdel -d <username>

10.

The encrypted password of a user is stored in

a)

/etc/passwd

b)

/etc/shadow

c)

/etc/enpasswwd

d)

/etc/groups