Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Chapter 6 Assignment 1.Turn your log record on using script command and name it ch_6 2.Create a folder named Ch6 and use script to create

Chapter 6 Assignment

1.Turn your log record on using script command and name it ch_6

2.Create a folder named Ch6 and use script to create a file named Ch6/hands_on.

3.Run env to show a list of environmental variables.

4.Run the following command: echo My username is `echo $USER` what is yours?

5.Run the find command to list all files in ../ that begin with Chap_ or chap_ using wild cards

6.Run the find command to list all files in ../ that begin with Chap_ or chap_ using wild cards, but pipe the output to sort command then use the tee command to send the output to a file named Ch6/sorted.

7.Run the wc -l command using Ch6/sorted as an input on Standard input.

8.Use find command to search beginning with the root directories looking for a file named whereis. The command line should send standard error to /dev/null and standard output to Ch6/where. Try the same command without using redirection of standard output and standard error.

9.Use find to search /export/home to find files named chap01. Add the exec option to the command to produce a long listing for each file found.

10.Do the same thing (see 8.) except dont use exec, but instead pipe the output to the xargs command to do the same long listing.

11.How would you run the commands in 8 and 9 and not produce the Permission Denied errors on the screen? Run the commands to demonstrate.

12.Run the find command that will list all files in ../wildcards that begin with Chap_ and then pipe the output to a command that will count the number of files (lines) of output then pipe to the tee command then send the output to Ch6/counted.

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

Database Systems For Advanced Applications 17th International Conference Dasfaa 2012 Busan South Korea April 2012 Proceedings Part 1 Lncs 7238

Authors: Sang-goo Lee ,Zhiyong Peng ,Xiaofang Zhou ,Yang-Sae Moon ,Rainer Unland ,Jaesoo Yoo

2012 Edition

364229037X, 978-3642290374

More Books

Students also viewed these Databases questions