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 are the four fundamental components of every file system on linux?
What does $1 mean in bash?
How to get the first line from a file using just the terminal?
What language is bash?
Why do we write bin bash in shell scripts?
What are the different commands available to check the disk usage?
What is awk in shell script?
What are types of shells?
What is bash used for?
What is a batch file used for?
Is powershell a language?
Is powershell a bash?
What is the use of "$?" Sign in shell script?
What is a shell script? Can you name some of its advantages?
What is the use of break command?