Question: Question: 1 . Find commands with patterns 1 a . List all files / directories in the / etc / directory that start with p
Question: Find commands with patterns a List all filesdirectories in the etc directory that start with p or qb List all filesdirectories in the etc directory that start with p or q and must have a second letter as rc List all filesdirectories in the etc directory that must start the line with se and have the optional third letter
Find commands with patterns
a List all filesdirectories in the etc directory that start with p or q
b List all filesdirectories in the etc directory that start with p or q and must have a second letter as r
c List all filesdirectories in the etc directory that must start the line with se and have the optional third letter of r
d List all filesdirectories in the etc directory that use nonalphanumeric characters in their names.
e 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
f List all filesdirectories in the etc directory that use digits in the name.
g Modify the solution of f to show those files and directories that have digits and end in d
h List all filesdirectories in the etc directory that have the text strings within the filesdirectoriescron OR yum
Example formats that must be used:
ls l ab
ls l bcest
ls bina c
ls binao
ls bina 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
