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

How do I search for a file in unix command?

975


How can we use grep command in unix?

1140


Which command will print your home directory on screen?

1031


What are the dos commands?

1195


What is s and g in sed command?

1058


Who invented grep?

1106


What is the use of the tee command?

1054


What is the pipe command?

1126


Which unix command lists files/folders in alphabetical order?

1659


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

2505


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

1140


Explain ‘system calls’ with respect to unix commands?

1039


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

1106


What difference between cmp and diff commands?

1241


Who command in unix operating system?

1085