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

what does a process mean?

5 Answers   Infosys,


What is pid?

4 Answers  


What is grep short for?

0 Answers  


How do you know about running processes of a particular user?

11 Answers  


What command would users use to see what file one page at a time in UNIX?

7 Answers   IBM,


what does the command 'wc' do?

4 Answers  


what are the different commands used to view the contents of a file?

5 Answers  


which command is used to identify the type of the file?

3 Answers  


what is the command to print last 8 lines of any text file.

10 Answers  


How to copy multiple files and directories into some other directory?

4 Answers  


What is the difference between a hard link and a soft link in Unix?

1 Answers  


What do chmod, chown, chgrp commands do?

0 Answers  


Categories