Managing Files and Directories on RHEL 8

1 hour
  • 4 Learning Objectives

About this Hands-on Lab

A Linux system administrator’s life is filled with files. Being able to manage files is a key skill for any system administrator. In this hands-on lab, we will explore a number of file management operations in Linux. We will create, delete, copy, and move files and directories. Create hard and soft links, lists, sets, and change standard ugo/rwx permissions, as well as archive, compress, unpack, and uncompress files using tar, star, gzip, and bzip2.

*This course is not approved or sponsored by Red Hat.*

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Archive, Compress, Unpack, and Uncompress Files
  1. Create a tar archive from a set of files.
  2. Use the various compression tools on the tar archive and compare the results.
  3. Create a compressed archive in one step, and then list it’s contents in various ways.
  4. Uncompress the compressed archive to a new local location.
Create, Delete, Copy, and Move Files and Directories
  1. Create a file and directory structure.
  2. Copy files and directories.
  3. Move files and directories.
  4. Delete files and directories.
Create Hard and Soft Links
  1. Create a soft link and verify what has happened.
  2. Create a hard link and verify what happened.
  3. See what happens when a soft link is broken.
  4. See how to find all the hard links to a file.
List, Set, and Change Standard ugo/rwx Permissions
  1. Create a shared directory for 3 users to share files properly.
  2. Setup the users, and sign in as each, to create a file in the shared directory.
  3. Fix the permissions so that all users can access each others files properly.
  4. Create more files to verify things work.

Additional Resources

You are a newer sysadmin, and have a number of tasks that need to be accomplished, such as understanding the various archive and compression tools and which are the most efficient as to space usage. You also need to understand how to create, move, copy and remove directories and files.

You need to get an understanding of what happens when you use hard and soft/symbolic links on directories and files so you use them properly when users need links. You'll also need to create a shared data directory, create and assign group membership to users, allow them to access the directory and then ensure they have proper access to the shared files, using regular and special permissions.

Red Hat Exam Requirements Covered:

  • Archive, compress, unpack, and uncompress files using tar, star, gzip, and bzip2
  • Create, delete, copy, and move files and directories
  • Create hard and soft links
  • List, set, and change standard ugo/rwx permissions

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?