Para implementar o comando standard do UNIX, você deve verificar o POSIX, por exemplo no link . Para o comando ls
: link , você encontrará o formato de saída:
If any of the -l, -n, -s, -g, or -o options is specified, each list of files within the directory shall be preceded by a status line indicating the number of file system blocks occupied by files in the directory in 512-byte units if the -k option is not specified, or 1024-byte units if the -k option is specified, rounded up to the next integral number of units, if necessary. In the POSIX locale, the format shall be:
"total %u\n",