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).

link|improve this question
feedback

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

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

2 Answers

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

link|improve this answer
+1 only the last 500? :P – alex Apr 27 '11 at 7:48
feedback

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

link|improve this answer
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
feedback

Your Answer

 
or
required, but never shown