S
S
Sergey Pugovkin2019-01-05 15:31:24
linux
Sergey Pugovkin, 2019-01-05 15:31:24

How to calculate the total size of files in certain folders by mask?

Mask /home/admin/*/*/img
Files - images (jpg)
PS It seems like the command du -ch /home/admin/*/*/img/*.jpg worked, but after ~10 seconds:
-bash: fork : Cannot allocate memory

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Utkin, 2019-01-10
@DerNitro

find + awk
size in bytes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question