Question: guide to unix using linux / 4th edition / chapter 2 / p9 B.2.9 Wildcards are handy to know when you want to find or
guide to unix using linux / 4th edition / chapter 2 / p9
B.2.9 Wildcards are handy to know when you want to find or work on files that have a specific sequence of characters or when you are searching to find a file and are not certain of the correct spelling of that file name.
To practice using wildcards, you first must create a set of files with similar names. From your home directory, create a directory called files (show command used here) _____________________________.
Now use the cat command and redirection (>) to create the following files with the designated name and content (show the complete cat command used to do this ... remember, use a Ctrl+d on a line by itself to end the redirection):
first_name (a file containing your first name) ___________________________ ___________________________ ___________________________
middle_name (a file containing your middle name) ___________________________ ___________________________ ___________________________
last_name (a file containing your last name) ___________________________ ___________________________ ___________________________
full_name1.txt (a file containing your full name) ___________________________ ___________________________ ___________________________
full_name2.txt (another file containing your full name) ___________________________ ___________________________ ___________________________
Type ls *name and press Enter. Write down the files you see and explain why: ________________________________________________________________
Type ls full_name?.txt and press Enter. Write down your observation and explain why: _____________________________________________________
Type ls *.txt and press Enter. Write down your observation and explain why: ________________________________________________________________
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
