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 a beat in a script?
I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?
What language is bash written in?
Is it possible to substitute "ls" command in the place of "echo" command?
What is the command to find out users on the system?
c program to display the information of given file similar to givan by the unix or linux command ls -l
Why is a script important?
How do I set bash as default shell mac?
Explain about echo command?
What are the zombie processes?
What happens on a system call?
Explain about stdin, stdout and stderr?
What is @echo off?
Is cmd a shell?
How to get script name inside a script?