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 is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

1358


What is time_t?

1163


What is the use of the command 'ls -x chapter[1-5]' ?

1269


How can you see the command line history?

1186


Who wrote grep?

1110


Is it inbetween or in between?

1108


Which command is used to kill the last background job?

1392


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

1328


Explain mount and unmount command.

1280


What is $0 bash?

1256


How many unix commands are there?

1207


What does the “echo” command do?

1196


Which command is used to delete all files in the current directory and all its sub-directories?

1317


What does touch command do in unix?

1479


Using unix command how to display no of records in oracle?

1208