How can I backup the mac osx (lion) terminal commands history into a text file on desktop ?
you can do this by redirecting the output of history into a file.
history > history.txt