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 first line in every perl script called?
What is @echo off?
What is the best shell scripting language?
What does .sh file contain?
What does path stand for?
What is the significance of $#?
What is difference between shell and bash scripting?
What language is bash?
How do I run a powershell script?
What is a shell made of?
How do I start a shell script?
I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.
How does path variable work?
What is mac default shell?
write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.