Search code examples
macosterminalosx-lion

Backup mac osx terminal commands history


How can I backup the mac osx (lion) terminal commands history into a text file on desktop ?


Solution

  • you can do this by redirecting the output of history into a file.

    history > history.txt