0

I am working on Ubuntu 9.10. I would like to ask if is there a way to print all the commands typed in Linux? I took a break of a few months on Linux and now I would like to have a list with everything I've tested ,tried starting with the period I've installed Linux (Ubuntu).

migrated from stackoverflow.com Apr 28 '11 at 9:30

This question came from our site for professional and enthusiast programmers.

3

You can use the history command. By default, bash only stores the last 500 commands I think.

  • +1 only the last 500? :P – alex Apr 27 '11 at 7:48
2

If you want the full history in a file, it is in ~/.bash_history which has last 500 commands you typed in.

  • can you give me the command? – linuxx Apr 27 '11 at 7:39
  • @linuxx: It is a file. You can open it with any application you like. Better copy it before you use new commands. – Felix Apr 27 '11 at 7:42
  • 1
    vi ~/.bash_history or cat ~/.bash_history | more – lobster1234 Apr 27 '11 at 7:42

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.