Lab Comprehensive 4: Mounting Filesystems And Finding Files


In this review, you will mount a file system and locate files based on different criteria.

##OUTCOMES

You should be able to:

• Mount an existing file system.

• Find files on the basis of the file name, permissions and size.

##BEFORE YOU BEGIN

Log in to workstation as student using student as the password.

On workstation, run lab rhcsa-rh124-review5 start to start the comprehensive
review. This script creates the necessary file system, user accounts and group accounts.

[student@workstation ~]$ lab rhcsa-rh124-review5 start

##INSTRUCTIONS

Accomplish the following tasks on serverb to complete the exercise.

• On serverb, a block device containing the XFS file system exists but is not yet mounted.
Determine the block device and mount it on the /review5-disk directory. Create the /
review5-disk
directory, if necessary.

• On serverb, locate the file called review5-path. Create a file named /review5-
disk/review5.txt
that contains a single line consisting of the absolute path to the
review5 file.

• On serverb, locate all the files having contractor1 and contractor as the owning
user and group, respectively. The files must also have the octal permissions of 640. Save
the list of these files in /review5-disk/review5-perms.txt.

• On serverb, locate all files 100 bytes in size. Save the absolute paths of these files in /
review5-disk/review5-size.txt
.

##Evaluation

On workstation, run the lab rhcsa-rh124-review5 grade command to confirm success
of this exercise.

[student@workstation ~]$ lab rhcsa-rh124-review5 grade

##Finish

On workstation, run lab rhcsa-rh124-review5 finish to complete the comprehensive
review. This script deletes the file system, user accounts, and group accounts created during the start of the comprehensive review and ensures that the environment on serverb is clean.

[student@workstation ~]$ lab rhcsa-rh124-review5 finish

This concludes the comprehensive review.