Question: Please use linux and provide screenshots 1. Write a script to do a little file count report for a given directory - show the number

Please use linux and provide screenshots

1. Write a script to do a little file count report for a given directory - show the number of items, directories, ordinary files, hidden items, hidden directories, and hidden files

a) You may use a command argument to supply the directory you want to report

b) Hint: use ls, grep, wc, regex, and pipe |

c) You may see that scripts can help do something that is usually not provided by the OS or any utilities.

2. Write a script to display numbers from 1 to n, where n is an integer provided by users (if not, default to 10). Hint: use read command to accept user input.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!