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
Get step-by-step solutions from verified subject matter experts
