How can I change 'history' command output?
In addition to HISTFILESIZE, you also need to set HISTSIZE, which controls the number of commands to keep in memory until they are saved.

Also, the manual page for history is available via man bash.  Scroll down to SHELL BUILTIN COMMANDS, and you'll find it.  The details about HISTSIZE and other variables are further up in the same manual page.