Answer Posted / damodar rao
#!/bin/bash
echo 'enter the directory name with path Ex: /home/damoar: ';
read $x;
$size = `du -h $x`;
echo 'size of a given directory $x is : `$size` ';
:wq
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the use of echo in shell script?
Give some situations where typing error can destroy a program?
Tell something about the super block in shell scripting?
What are the different commands available to check the disk usage?
What does path stand for?
How to get the last line from a file using just the terminal?
Why are there shells on the beach?
What happens when you type ls?
Why is shell scripting important?
What is the equivalent of a file shortcut that we have a window on a linux system?
What are the advantages of using shell scripts?
What does echo mean in scripting?
How do I run a shell script on a mac?
What is another name for a bash shell script that you might see?
How can we find the process name from its process id?