How to show file size in Linux terminal
To list the file size of all the files in the current directory, use the du
command
du -sh *
-s
is for summarize so it gives a total size for a directory-h
is for human readable format with units*
is for all files. One can change it to a filename to see the size of only that file