Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

We use the find program in this lab. We will start with some basic commands. At its most basic, the command is used like this:

We use the find program in this lab. We will start with some basic commands. At its most basic, the command is used like this: find dir name string where dir is the starting directory (the find command performs a search from that point down in the hierarchy) and string describes the filename to match again (wildcards can be included).

a. Enter the command find /usr/sbin name user* to locate all of the files (commands) in /usr/sbin (and any subdirectories) that start with user. What files were found?

b. Enter a command to find all entries under /etc that end with .conf as an extension. What instruction did you use? Pipe the result to wc. How many entries were found?

c. Redo the first command you entered in part b without the pipe and scroll through the results. You will find in some cases the response: Permission denied. Why would you get this error?

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

Pro SQL Server Administration

Authors: Peter Carter

1st Edition

1484207106, 9781484207109

More Books

Students also viewed these Databases questions

Question

find all matrices A (a) A = 13 (b) A + A = 213

Answered: 1 week ago