-
ls -al displays the file or folder size in bytes;
-
byte b, kilobyte kb,
1G=1024M=1024*1024KB=1024*1024*1024B
-
Usually the parameter h is added to visually display the size, and G, M, etc. are used to display large files
ls -alh
For example, to view the size of the home directory: du -s / home You can also: du -sh / home