hands-on lab

Working with Files and Directories in Linux

Difficulty: Beginner
Duration: Up to 45 minutes
Students: 1,420
Rating: 4.9/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

In this lab, you will use fundamental Linux commands to work with files and directories in a Linux environment. The commands used in this lab have been covered in the Linux Fundamentals course. References to the specific lessons of the course will be provided throughout the lab steps. 

The Linux command-line tools referenced in this lab are:

  • cd
  • chmod
  • cp
  • emacs
  • mkdir
  • mv
  • nano
  • vim 

Learning Objectives

Upon completion of this lab, you will be able to:

  • Change the permissions of files with chmod
  • Modify a text file with a built-in Linux text editor
  • Move files from one directory to another with mv
  • Create a new directory to store backup file copies with mkdir and cp

Intended Audience

  • Those beginning to work with Linux
  • Software Engineers
  • DevOps Engineers
  • Data Engineers

Prerequisites

Familiarity with basic Linux commands will be beneficial. Refer to the following course to fulfill the prerequisite:

Environment before

Environment after

Covered topics

Lab steps

Accessing the Amazon Linux 2 Terminal
Updating File Permissions in Linux
Editing Files in Linux
Moving Files in Linux
Copying Files in Linux