Showing posts with label history command. Show all posts
Showing posts with label history command. Show all posts

25 January 2012

Play with history Command in Linux/Unix

3 comments

history command shows the list of commands you had executed in your terminal. This command is useful when you want to execute same command again and again , in that case you can recall that command and save your precious time. Here are some examples of history command

1. Simply Display history of my commands
$ history

1  ls
2  reset
3  cat abc.lst
4  reset
5  cat abc.lst xyz.lst

Note: View command history page by page using following command
$ history|more

1  ls
2  reset
3  cat abc.lst
4  reset
5  cat abc.lst xyz.lst
6  reset
7  cat > pqr.lst
8  cat pqr.lst
Read More...