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

What does the metacharacter mean?

1135


What is the functionality of a top command?

1105


What is the nmap command?

1181


What difference between cmp and diff commands?

1301


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

1312


What is the use of finger command?

1214


How do I delete files from command prompt?

1227


What command is used to check the current users?

1127


Is grep faster than awk?

1042


What is time_t?

1113


Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

1567


What is the use of egrep command in unix?

1185


What command is used to switching between users in unix?

1082


What is the difference between grep and grep?

1131


Enumerate some of the most commonly used network commands in unix?

1168