View history without line numbers
When we need to know which command we ran previously, we use the History command. But, by default, this gives you all your previous commands with line numbers. History is one of the most frequently used commands by systems administrators. Sometimes we need to copy-paste or store these commands into a file. But when we do this, we have to manually remove those line numbers and this becomes rather annoying.
Here is a simple trick that will remove line numbers from the command list. All you need to do is pipe the History command with the Cut command.