I want to see what are the last N commands in my
history. I thought
history | tail -n 5 would make it, but I noticed that a multiline command counts for as many lines as it has.
$ echo "hello how are you" $ history | tail -2 how are you" 1051 history | tail -2
So my question is: do I have to parse the output of the command to accomplish this?