PDF Version Available

This document is also available in PDF format: cmdsandwildcards.pdf

The PDF version includes bookmarks for easy navigation and is optimized for printing.

Accessibility Notice

This document is also available in HTML format at:

Link: https://aholdengouveia.name/IntroLinux/labs/cmdsandwildcards.html

The HTML version provides enhanced accessibility features including keyboard navigation, screen reader support, responsive design, dark mode support, and high contrast options.

Learning Outcomes

By the end of this lab, you will be able to:

Lab Instructions

How to set up for this lab

We are going to create a test directory with files, and then use wildcards and find to locate them.

Problems to solve

Use wildcards and the ls command to answer the following.

  1. All files
  2. All files including hidden files.
  3. Files that start with “f”
  4. Files that start with “f” or “F”
  5. Files that have “f” or “F” anywhere in the name
  6. Files that have a digit in the name
  7. Files that start with a through d
  8. Files that end with 1 or 2
  9. Experiment with the find command by solving one of the above questions using find instead of ls.

Deliverables

One file that has the lab title, name and date and the answers.

Resources

References, a video, a PowerPoint and some notes are available at my website Link: https://www.aholdengouveia.name/IntroLinux/cmdsandwildcards.html

My FAQ Linux playlist on YouTube, with demos of many of the commands and scripts in this class Link: https://www.youtube.com/playlist?list=PLQOmuLC45eoQlIMH7oCNL6yFP7kWQubBo