Remove first line total from ls output

That easy … really!

A bit more detail

This is your normal output starting with the total line

Now we remove that total line by piping the ls output through tail

Why does it work?

tail -n +2 means everything from the second line onwards.

1 One person thinks it's helpful 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *