The fc command lists command history. 'fc -l -50' shows the last 50 commands (negative number counts back from most recent). 'fc -l 50' would start from command 50. 'history 50' shows the last 50 commands but with different format. 'history $$' is nonsensical ($$ is current PID).