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 know a process is a zombie or orphan process?

3 Answers   Perot Systems,


What is the syntax of grep command and what is its use?

6 Answers  


Give Command that will change the name of a directly from paypal to eBay

3 Answers   Alcatel, IBM,


How do you change file permissions and ownership in Unix?

2 Answers  


What is the general format of unix command syntax?

2 Answers  


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

0 Answers  


How are UNIX file permissions represented?

1 Answers  


What is the significance of the 'tee' command?

0 Answers  


How do you copy a directory with many files and folders into another directory?

2 Answers  


What is difference between grep and find command in unix?

0 Answers  


How to find and replace the below command?

2 Answers   HCL,


Explain command to display different lines that are found when compare two files?

0 Answers  


Categories