Multiple choice technology operating systems

Which one of the following command shows the last 50 commands the user has entered.

  1. fc -l 50

  2. fc -l -50

  3. history 50

  4. history $$
Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

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).