I'm working on a little util tool written in bash that gives me some information about a game server on Linux. For that reason I need a possibility to display the size of the file contents.
I'm doing that right now by using this:
du -Lshc *
It works almost perfect! The only flaw is that it displays stuff like this:
21G backups
22G server
8.0K start.sh
151M world.zip
43G total
This is fine but I want more digits. Meaning it should look like that:
21.587G backups
22.124G server
8.089K start.sh
151.198M world.zip
43.436G total
Is there a possiblility to do that?
I wouldn't mind using a complex command since I use it in a .sh
file so I won't type it by hand every time.