Mac iTOps Tube

Sunday, May 6, 2012

export bash history to file


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


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.


No comments:

Post a Comment