Question: Linux Please ! ! ! Write a bash script that: - asks the user for an absolute path to an existing directory. You can assume

Linux Please !!!
Write a bash script that:
- asks the user for an absolute path to an existing directory.
You can assume the user will enter a valid directory path.
- prints the total number of files in the given directory.
- prints the total number bytes of all regular files in the given directory.
The output should be in this format:
Number of files: 54
Regular file total memory size: 40313 bytes
Don't forget that 'file' means all file types in Linux.
You should not use any bash arrays, if statements, or loops. Instead, use the utilities that we've covered in class.

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!