Home » LPI » 117-201 » SIMULATION
SIMULATION
In order to display the last five commands you have entered using the history command, you would type _______.
Correct Answer: history 5
Explanation/Reference:
Explanation: The history command is used to display the previously entered commands. If you typed history with no arguments, you would likely get a long scrolling list of commands. By typing a number after ‘history’, you will display only the last <number> of commands.
Reference: http://www.redhat.com/docs/manuals/linux/RHL-7.3-Manual/getting-started-guide/s1-q-and-a-history-tips.html
Download Printable PDF. VALID exam to help you PASS.
|
|
fc -l -5 also works