Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

RedHat Linux Week 7 Review

Total questions: 12

Worksheet time: 8mins

Name
Class
Date
1.

What makes a file or folder hidden on Linux?

a)

The -h attribute

b)

When it starts with a period ( . )

c)

When it starts with a $

d)

When it has a total permissions value of 8

2.

What command shows you who is currently logged into a Linux system and from where?

a)

w

b)

who

c)

which

d)

last

3.

Match the following file with the definition that best describes what it does.

a)

~/.bashrc

1.

File that allows you to alter how the default shell behaves.

b)

~/.vimrc

2.

File that alters how your favorite text editor behaves.

c)

/etc/hosts

3.

File that you can use to establish static IP address to machine name pairings.

d)

/etc/passwd

4.

File that hold information about all user accounts including UIDs and GIDs as well as default shell.

e)

/etc/shadow

5.

File that holds an encrypted version of all users' passwords as well as the salt and algorithm used

4.

What command is used when creating new user accounts?

a)

useradd

b)

add --user

c)

usermod -add

d)

touch-user

5.

What command allows you to make changes to a user account; like adding group membership or locking it out?

a)

chage

b)

userman

c)

adduser

d)

usermod

6.

Which command will remove the user tot from the system but leave their home directory untouched?

a)

userdel tot

b)

userdel -r tot

c)

userdel tot && rm -rf /home/tot

d)

deluser /home/tot

7.

Which of the following users is most likely to have the UID 1010?

a)

root

b)

syslog

c)

arpwatch

d)

tot

8.

What file stores information about all groups on a Linux system like each group's GID?

a)

/etc/group

b)

~/.groups

c)

/etc/gshadow

d)

/etc/gid.defs

9.

In the attached entry, what does the $6 after sellison: tell you about sellison's passoword?

a)

It will need to be changed in 6 more days

b)

It must be at least 6 characters in length

c)

Nothing, it is not related to his password

d)

It was encrypted using the SHA-512 hashing algorithm

10.

If I wanted to change when a user's password will expire on a Linux system, what command would I use?

a)

usermod

b)

chage

c)

userdel

d)

userman

11.

If you want to create a user account that cannot login to the system interactively, what do you do?

a)

Give them an invalid shell in their /etc/passwd file entry.

b)

Use the command "chage -M user_name"

c)

Specify a UID lower than 1000

d)

Add them to a group that has a password on it that they do not know

12.

Match the following command with the definition that BEST fits.

a)

su

1.

Allows you to become the root user

b)

sudo

2.

Allows you to run a "one-off" command with elevated privileges

c)

usermod -aG

3.

Allows you to add supplementary groups to a user

d)

id

4.

Allows you to see UID and GIDs for an account

e)

passwd

5.

Allows you to change yours or, if root, another user's password