V
V
Valery Ivanov2015-01-08 22:51:23
bash
Valery Ivanov, 2015-01-08 22:51:23

How to find out the size of a folder in linux?

How to find out the size of a folder in linux and at the same time, so that only the value in megabytes is displayed (without any letters, just, for example, 1024)?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Taratin, 2015-01-08
@valeragan

du -scm папка | tail -1 | sed 's/[^0-9]//g'

S
SagePtr, 2015-01-08
@SagePtr

Go to man du

S
Sergey Petrikov, 2015-01-09
@RicoX

Although the solution has already been found, I would like to advise ncdu to display the sizes of directories and subdirectories very clearly.

O
O Di, 2015-01-09
@insiki


guest56: Guys, how to see how much a directory knows?
Whiteman: Look at man du
guest56: fuckin' bitch look at twat wise
guy *guest56 has quit

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question