Oracle Interview Question

how to find result of last executed command on linux

Interview Answers

Anonymous

May 3, 2011

Build a machine that travels faster than the speed of light. Break through the time space continuum until you travel back in time to the exact moment when you entered the last Linux command. The screen will display the result of that command.

Anonymous

Jun 12, 2011

1. Use the up arrow to view the previous command and press enter to execute it. 2. Type !! and press enter from the command line 3. Type !-1 and press enter from the command line. 4. Press Control+P will display the previous command, press enter to execute it