Answered step by step
Verified Expert Solution
Link Copied!

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: 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

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

Big Data In Just 7 Chapters

Authors: Prof Marcus Vinicius Pinto

1st Edition

B09NZ7ZX72, 979-8787954036

Students also viewed these Databases questions

Question

Identify five strategies to prevent workplace bullying.

Answered: 1 week ago