ls -s command, what type of file size
When you type ls -s
, what size unit does it use to display the file sizes - bits, bytes, megabytes?
files ls
add a comment |
When you type ls -s
, what size unit does it use to display the file sizes - bits, bytes, megabytes?
files ls
add a comment |
When you type ls -s
, what size unit does it use to display the file sizes - bits, bytes, megabytes?
files ls
When you type ls -s
, what size unit does it use to display the file sizes - bits, bytes, megabytes?
files ls
files ls
edited Jan 16 at 0:41
wjandrea
8,62442260
8,62442260
asked May 17 '18 at 21:09
kristhemankristheman
2013
2013
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
It shows the size of the file in blocks. I guess, it is in KBs. If you use -h
option along with -s
, like ls -sh
you could see the size in human readable format. For more info check the man page.
add a comment |
The units are KiBs (1024 bytes).
From man ls
:
-s, --size
print the allocated size of each file, in blocks
But how big is a block? From info coreutils ls
:
Normally the disk allocation is printed in units of 1024 bytes, but this can be overridden
It's also worth noting that ls -s
says symlinks take 0 space, while ls -l
doesn't. E.g. ls -l
gives the size of /
as 1, /var
as 4, /home/username
as 14, etc.
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
It shows the size of the file in blocks. I guess, it is in KBs. If you use -h
option along with -s
, like ls -sh
you could see the size in human readable format. For more info check the man page.
add a comment |
It shows the size of the file in blocks. I guess, it is in KBs. If you use -h
option along with -s
, like ls -sh
you could see the size in human readable format. For more info check the man page.
add a comment |
It shows the size of the file in blocks. I guess, it is in KBs. If you use -h
option along with -s
, like ls -sh
you could see the size in human readable format. For more info check the man page.
It shows the size of the file in blocks. I guess, it is in KBs. If you use -h
option along with -s
, like ls -sh
you could see the size in human readable format. For more info check the man page.
answered May 17 '18 at 21:31
NakiniNakini
189126
189126
add a comment |
add a comment |
The units are KiBs (1024 bytes).
From man ls
:
-s, --size
print the allocated size of each file, in blocks
But how big is a block? From info coreutils ls
:
Normally the disk allocation is printed in units of 1024 bytes, but this can be overridden
It's also worth noting that ls -s
says symlinks take 0 space, while ls -l
doesn't. E.g. ls -l
gives the size of /
as 1, /var
as 4, /home/username
as 14, etc.
add a comment |
The units are KiBs (1024 bytes).
From man ls
:
-s, --size
print the allocated size of each file, in blocks
But how big is a block? From info coreutils ls
:
Normally the disk allocation is printed in units of 1024 bytes, but this can be overridden
It's also worth noting that ls -s
says symlinks take 0 space, while ls -l
doesn't. E.g. ls -l
gives the size of /
as 1, /var
as 4, /home/username
as 14, etc.
add a comment |
The units are KiBs (1024 bytes).
From man ls
:
-s, --size
print the allocated size of each file, in blocks
But how big is a block? From info coreutils ls
:
Normally the disk allocation is printed in units of 1024 bytes, but this can be overridden
It's also worth noting that ls -s
says symlinks take 0 space, while ls -l
doesn't. E.g. ls -l
gives the size of /
as 1, /var
as 4, /home/username
as 14, etc.
The units are KiBs (1024 bytes).
From man ls
:
-s, --size
print the allocated size of each file, in blocks
But how big is a block? From info coreutils ls
:
Normally the disk allocation is printed in units of 1024 bytes, but this can be overridden
It's also worth noting that ls -s
says symlinks take 0 space, while ls -l
doesn't. E.g. ls -l
gives the size of /
as 1, /var
as 4, /home/username
as 14, etc.
edited Jan 16 at 1:01
answered Jan 16 at 0:47
wjandreawjandrea
8,62442260
8,62442260
add a comment |
add a comment |