Skip to main content
added 19 characters in body
Source Link
nohillside
  • 104.5k
  • 42
  • 222
  • 275

You have to enter the command du -sh * instead of ls to get the actual size of the folders in your current directory (the sum of the files size they contain).

The command ls shows file size, but it has a different meaning for folders. It actually shows the size allocated for the directory to store metadata (mainly the index) of the files it contains.

You have to enter the command du -sh * instead of ls to get the actual size of the folders in your current directory (the sum of the files size they contain).

The command ls shows file size, but it has a different meaning for folders. It actually shows the size allocated for the directory to store metadata of the files it contains.

You have to enter the command du -sh * instead of ls to get the actual size of the folders in your current directory (the sum of the files size they contain).

The command ls shows file size, but it has a different meaning for folders. It actually shows the size allocated for the directory to store metadata (mainly the index) of the files it contains.

deleted 4 characters in body
Source Link
Yoric
  • 1.3k
  • 9
  • 13

You have to enter the command du -sh * instead of ls to obtainget the actual size of the folders in your current locationdirectory (meaning, thethe sum of the files size it containsthey contain).

The command ls shows file size, but it has a different meaning for folders. It actually shows the size allocated for the directory to store metadata of the files it contains.

You have to enter the command du -sh * instead of ls to obtain the size of the folders in your current location (meaning, the sum of the files size it contains).

The command ls shows file size, but it has a different meaning for folders. It actually shows the size allocated for the directory to store metadata of the files it contains.

You have to enter the command du -sh * instead of ls to get the actual size of the folders in your current directory (the sum of the files size they contain).

The command ls shows file size, but it has a different meaning for folders. It actually shows the size allocated for the directory to store metadata of the files it contains.

Source Link
Yoric
  • 1.3k
  • 9
  • 13

You have to enter the command du -sh * instead of ls to obtain the size of the folders in your current location (meaning, the sum of the files size it contains).

The command ls shows file size, but it has a different meaning for folders. It actually shows the size allocated for the directory to store metadata of the files it contains.