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?



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

Answer / 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

More Unix Commands Interview Questions

How to redirect standard error to a file?

2 Answers  


what is the use of wild cards?

2 Answers  


what are the uses of filters?

3 Answers  


what is the use of "fg" command ?

5 Answers   PSU, Sail,


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

0 Answers  


How do you move or rename a file or directory?

1 Answers  


what is the use of nice command?

4 Answers  


what is the command to list files in a directory in UNIX?

8 Answers  


how to make IGNITE-BACKUP in HP-UX?

4 Answers   HP,


what is the use of "grep" command?

6 Answers   HCL,


29. How to display top 10 users Who | head -10 | wc –w

4 Answers   TCS,


Which command is used to kill the last background job?

0 Answers  


Categories