Sunday, April 28, 2024
28
rated 0 times [  28] [ 0]  / answers: 1 / hits: 129364  / 1 Year ago, fri, may 5, 2023, 12:01:07

I'm having some files and folders in the "My Documents" directory. What are the commands to see the size of a file and directory in a terminal?


More From » command-line

 Answers
6

This will summarise the sizes of the directories:



du -h


PS: Although all computer storage is technically "memory", this term is usually reserved for non-persistent storage like RAM and CPU cache.


[#27592] Friday, May 5, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
itteast

Total Points: 291
Total Questions: 123
Total Answers: 104

Location: Tuvalu
Member since Wed, Mar 29, 2023
1 Year ago
;