the question is, how can control the ls -l
total
output ?
first impression with example that give us total = 0
els3@els3PC:~/test$ touch file
els3@els3PC:~/test$ ls -l
total 0
-rw-r--r-- 1 els3 els3 0 Jul 20 12:05 file
As i mention this example give us this result total = 0
by creating empty file.
in other way I will try to create a non empty file2 contain '3ls3' .
els3@els3PC:~/test$ cat > file2
3ls3
^C
els3@els3PC:~/test$ cat file2
3ls3
els3@els3PC:~/test$ ls -l
total 4
-rw-r--r-- 1 els3 els3 5 Jul 20 12:11 file2
this second example give us total 4
by creating a non empty file.
the hole Q is how can i get for e.g total 1
or total 2
etc.. by creating a new file.
ls
and its--block-size
option ;-). – Stephen Kitt Jul 20 '18 at 11:38