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

Give command that will make the file "run.sh" executable?

10 Answers   IBM,


Is it inbetween or in between?

0 Answers  


what are filters?

6 Answers  


Write a command to display a file’s contents in various formats?

0 Answers  


Who command in unix?

0 Answers  


What is pid?

4 Answers  


What is the protocol for PING command?

1 Answers   IBM,


What is an Unix command to convert HEX value to ASCII value located in any flat file.

2 Answers  


if we create a file, in that 10 rows(means 1,2,....9,10 like). i want 7 row exactly, which command use in unix? plz send this question.

28 Answers   TCS,


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

2 Answers  


The rm command removes links to file. What does this mean? How then is a file deleted from the file system?

5 Answers  


what is the difference between SED and GREP ? Which one is more better and why?

4 Answers   IBM,


Categories