How can I print Linux command line history without including the line numbers? I want to send it all to a text file like this:
history >> history.txt
feedback
|
|
First of all, the history is a feature of the shell, and doesn't really have anything to do with Linux, per se. Assuming you are using the bash shell, if you just use the history write option it doesn't add line numbers, anyway.
Will get you what you want. | |||
|
feedback
|
|
try the following if you don't want to write to a file
| |||
|
feedback
|