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

Which unix command lists files/folders in alphabetical order?

1682


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

1268


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

1123


What is the command to compare two files in unix?

1061


How do I run a bash script?

1128


Explain how to use grep command to list find the records of a file containing 10 different strings?

1023


How do I clear my terminal history?

1101


What is the comma to display different lines that are found when compare two files?

1099


Write a command that will display files in the current directory, in a colored, long format.

1169


What is rmdir command?

1051


What does the command '$ls | wc –l > file1' do?

1183


Can you explain a little bit about command substitution?

1066


Who command in unix?

1099


What are the unix commands?

1040


How does pipe () work?

1046