Question: Question: 1 . Find commands with patterns 1 a . List all files / directories in the / etc / directory that start with p

Question: 1. Find commands with patterns 1a. List all files/directories in the /etc/ directory that start with p or q.1b. List all files/directories in the /etc/ directory that start with p or q and must have a second letter as r.1c. List all files/directories in the /etc/ directory that must start the line with se and have the optional third letter
1. Find commands with patterns
1a. List all files/directories in the /etc/ directory that start with p or q.
1b. List all files/directories in the /etc/ directory that start with p or q and must have a second letter as r.
1c. List all files/directories in the /etc/ directory that must start the line with se and have the optional third letter of r.
1d. List all files/directories in the /etc/ directory that use non-alphanumeric characters in their names.
1e. Create an alias named lsor for the command you created in answer (b) and run lsor and then see if you get the same result as in (b)
1f. List all files/directories in the /etc/ directory that use digits in the name.
1g. Modify the solution of (f) to show those files and directories that have digits and end in d.
1h. List all files/directories in the /etc/ directory that have the text strings (within the files/directories)cron OR yum
Example formats that must be used:
ls -l [ab]*
ls -l {b*,c*,*est*}
ls /bin/[!a c]*
ls /bin/[^a-o]
ls /bin/[^a o]
Anything with | grep or not conforming to these formats is outside the scope of the lecture and would not be suitable for the assignment.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!