How can I get the size of a file in a bash script?

Subscribers:
4,120
Published on ● Video Link: https://www.youtube.com/watch?v=NlR7D5GNOD4



Duration: 5:49
5 views
0


How can I get the size of a file in a bash script?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!

(unix.stackexchange.com/users/9140/haunted85)haunted85 |
(unix.stackexchange.com/users/9071/b01)b01 |
(unix.stackexchange.com/users/30114/nemo)Nemo |
(unix.stackexchange.com/users/9057/eug%c3%a9ne)Eugéne |
(unix.stackexchange.com/users/50950/chbrown)chbrown |
(unix.stackexchange.com/users/22565/st%c3%a9phane-chazelas)Stéphane Chazelas |
A special thanks goes out to the (https://unix.stackexchange.com/questions/16640/how-can-i-get-the-size-of-a-file-in-a-bash-script)Stackexchange community |

I wish you all a wonderful day! Stay safe :)

shell files bash







Tags:
shell
files
bash