Interview Questions

In order to display the last five commands you have entered using the history command, you would type ___________.

Operating System Interview Questions and Answers


(Continued from previous question...)

In order to display the last five commands you have entered using the history command, you would type ___________.

Answer: history 5
The history command displays the commands you have previously entered. By passing it an argument of 5, only the last five commands will be displayed.

(Continued on next question...)

Other Interview Questions