ls -l adds a total line (for total number of blocks) at the top of its output. Is there a direct way to suppress this line from the output? I know I can pipe the output into another command to delete the first line, but I am wondering if I am missing a simple option to suppress that line in the first place.
Suppress printing of total line with ls -l
command line;ls
No, you're not missing a simple option to drop the total line. For example, with GNU ls, the -l, -g, -n, -o and -s options cause the total line to be displayed, with no option to disable it:if (format == long_format || print_block_size){  const char *p;  char buf[LONGEST_HUMAN_READABLE + 1];  DIRED_INDENT ();  p = _(total);  DIRED_FPUTS (p, stdout, strlen (p));  DIRED_PUTCHAR (' ');  p = human_readable (total_blocks, buf, human_output_opts,                      ST_NBLOCKSIZE, output_block_size);  DIRED_FPUTS (p, stdout, strlen (p));  DIRED_PUTCHAR ('\n');}This is actually mandated by POSIX.