hands-on lab

Working with Linux Wildcards

Beginner
45m
648
4.4/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.
Lab description

Wildcards in Linux are symbols or a set of symbols that can be used to represent other characters. For example, they can be used to substitute for characters in a string in order to simplify searching for certain files and directories.

In this lab, you will utilize wildcards and character classes in a Linux environment. The commands used in this lab have been covered in the Wildcards in Linux course. References to the specific lessons of the course will be provided throughout the lab steps.

The expected outputs for each lab step are provided as comments in the lab script file.

Learning Objectives

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

  • Use wildcards to perform actions on one or more files at a time
  • Use character classes to find matching pieces of text in a file

Intended Audience

  • Those beginning to work with Linux
  • Those looking to gain experience with basic shell scripting
  • Software Engineers
  • DevOps Engineers

Prerequisites

You should be familiar with the following shell scripting features before attempting this lab:

  • Wildcards
  • Character Classes
  • Vim, Nano, or Emacs

Refer to the following courses to fulfill the prerequisite:

Environment before
Environment after
About the author
Avatar
Jun Fritz, opens in a new tab
Cloud Labs Developer
Students
39,418
Labs
106
Courses
1
Learning paths
6

Jun is a Cloud Labs Developer with previous experience as a Software Engineer and Cloud Developer. He holds the AWS Certified Solutions Architect and DevOps Engineer Professional certifications. He also holds the AWS Certified Solutions Architect, Developer, and SysOps Administrator Associate certifications. 

Jun is focused on giving back to the growing cloud community by sharing his knowledge and experience with students and creating engaging content. 

Covered topics
Lab steps
Accessing the Amazon Linux 2 Terminal
Modifying Your Lab Shell Script
Locating and Moving Files with Wildcards
Simplifying Searches with Character Classes