History file in UNIX

commands to view the history file in unix.

I am not sure whether it is bash_history.sh

the file is in ${HOME}/.bash_history the file can be viewed many ways, using history to cat the entire file with each commands id number prepended. this allows you to easily supply an argument to the fc ${COMMAND_ID} to "fix" a command in your preferred editor.

1 Like