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:
Regular file total memory size: 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
