Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started