I ran this command
history | cut -c 8-
It listed all the history commands as expected without line numbers.
I'm wondering if there is a way to list only unique one.
history | cut -c 8- | sort -u
doesn't seem to work.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community