How much disk room does a checklist of documents make use of

How can I locate just how much disk does a checklist of documents makes use of? I'm seeking a variant of

du -s *.sql

I intend to see just the grand total amount, and also with the command over, it constantly reveals a line for each and every documents.

0
2019-12-02 03:09:15
Source Share
Answers: 4

Your inquiry is really unclear yet I believe you are seeking the -c flag to generate a total amount.

du -c *.sql
0
2019-12-03 05:06:32
Source

You can make use of tail to reduce the last line (the total amount) from the result of du :

du -c *.sql | tail -n 1

There appears to be no other way to make du itself report simply the total amount of a set of documents.

0
2019-12-03 05:03:11
Source

What does not function from your instance? Do you desire an amount? man du reveals that the -c alternative gives an amount of use :

du -sc *.sql

You might additionally such as the -h or -k debates.

0
2019-12-03 05:02:09
Source
cat *.sql | wc -c

Answer remains in bytes.

0
2019-12-03 02:45:35
Source