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
How do you find out What is your shell?
What shell is bin sh?
What is a scripting language simple definition?
How do I open the shell prompt?
What is the way to do multilevel if-else's in shell scripting?
How can we find the process name from its process id?
What is the syntax of "nested if statement" in shell scripting?
Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.
What is computer cli?
What is inside a seashell?
What is the meaning of $1 in shell script?
What can scripts do?
What is k shell?
What are the disadvantages of shell scripting?
Explain about debugging?