Operating System - HP-UX
1753352 Members
4948 Online
108792 Solutions
New Discussion юеВ

viewing history of the commands used

 
SOLVED
Go to solution
Shivkumar
Super Advisor

viewing history of the commands used

Hi,

i am using bash shell. when i execute history command i can see only last 10 lines.
how do i see all the commands in history ?

Thanks,
Shiv
2 REPLIES 2
Uday_S_Ankolekar
Honored Contributor
Solution

Re: viewing history of the commands used

history -n (number of lines you want to see)

ex: history -25

or cat the .sh_history file

-USA..
Good Luck..
Shivkumar
Super Advisor

Re: viewing history of the commands used

Thanks!! got the answer.

Shiv