Wednesday, September 24, 2008

Key History

history will display all the commands you already typed in the console.

The result looks like this
1 su
2 ps ax|grep tomcat
3 ls
4 cd /usr
5 cd local
6 ls
7 cd bin

To rerun one command in the list, for example, if I want to rerun command #6 which is "ls", just type


No comments:

Post a Comment