Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How would you find the size of a file or directory?

Answer Posted / hr@tgksolutions.com

The du command, standing for "disk usage", can be employed to ascertain the size of files and directories. du -sh filename would display the size of a file, while du -sh directory_name reveals the total size of a directory. The -s provides a summary and -h displays sizes in a human-readable format (like KB, MB). It's an invaluable command for monitoring space utilisation and managing storage effectively.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is awk used for?

1089


Describe the zip/unzip command using gzip.

1117


What is the use of find command in unix?

1101


What is time_t?

1067


What is the use of tee command?

1097


what is the advaantage of each user having its own copy of the shell?

2520


Why is awk called awk?

1031


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

1274


What is the use of sed command in unix?

1160


Using unix command how to display no of records in oracle?

1130


What is ctrl d?

1056


What do chmod command do?

1154


Which command is used to create a directory?

1109


Does cp command overwrite files?

1150


What is $0 bash?

1146