Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project 2 - 9 Wildcards are handy when you want to find or work on files that have a specific sequence of characters or when

Project 2-9
Wildcards are handy when you want to find or work on files that have a specific sequence of characters or when you are searching for a file and are not certain of the correct spelling of that file name. In this project, you will use the * and ? wildcards with the ls command.
To work with wildcards:
1. To practice using wildcards, you first must create a set of files with similar names. In Chapter 1, you used the cat command to create the notes file. Use the cat command now to create these five files:
first_nameA file containing your first name middle_nameA file containing your middle name last_nameA file containing your last name full_name1.txtA file containing your full name full_name22.txtAnother file containing your full name
2. For example, type cat > first_name, press Enter, type your first name, press Enter, and press Ctrl+d.
3. Type ls *name and press Enter. You see first_name, last_name, and middle_name listed.
4. Type ls full_name?.txt and press Enter. You see full_name1.txt listed.
5. Type ls *.txt and press Enter. Now, you see full_name1.txt and full_name22.txt
listed.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Administration

Authors: Peter Carter

1st Edition

1484207106, 9781484207109

More Books

Students also viewed these Databases questions