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
Suppose you execute a command using exec, what will be the status of your current process in the shell?
What is mac default shell?
What shell is bin sh?
What does .sh file contain?
Can you write a script to portray how set –x works?
What is .sh file in mac?
What is the best shell scripting language?
How to calculate the number of passed arguments?
How do you find out What is your shell?
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
What is the difference between bash and shell?
What is echo $shell?
What is echo in shell?
How do you create a shortcut in linux?
c program to implement unix/linux command to block the signal ctrl-c and ctrl-\ signal during the execution ls -l|wc -l