Mac iTOps Tube

Sunday, May 6, 2012

export bash history to file

Hi,

I want to export bash history to a file, I used the following command


Code:


history > /home/administrator/bashHistory

But the exported file only contains commands with line number from 996 to the last one, How to export all the commands including commands before line 996?



Thanks a lot.

Roy987




No comments:

Post a Comment