How to check command history in ksh?

November 15th, 2006 - 03:12 pm ET by Shawn | Report spam
Hi,

I am using ksh (probably pdksh). I found that command "history" is an alias:
alias history = "fc -l"

I really don't like it. Because it only gives the last 15 commands. I
want to see OLDER commands.

I have checked in my home directory. I cannot found any related dot
file. I am a bash user and I know how to find the history file.

I have tried "unalias history". Then "history" command is not recognized
at all.

Thank you very much for your help.
email Follow the discussionReplies 2 repliesReplies Make a reply

Replies

#1 Dan Espen
November 15th, 2006 - 03:49 pm ET | Report spam
Shawn writes:

Hi,

I am using ksh (probably pdksh). I found that command "history" is an alias:
alias history = "fc -l"

I really don't like it. Because it only gives the last 15 commands. I
want to see OLDER commands.



Try:

fc -l -99

Increase HISTSIZE to store more history.

Similar topics