What command you execute to display the last five commands
you have entered?

Answers were Sorted based on User's Feedback



What command you execute to display the last five commands you have entered?..

Answer / veena

history | tail -5

Is This Answer Correct ?    20 Yes 0 No

What command you execute to display the last five commands you have entered?..

Answer / ravindra s.

write answer is
history 5 OR history |tail -5

Is This Answer Correct ?    10 Yes 0 No

What command you execute to display the last five commands you have entered?..

Answer / arnab

history 5

Is This Answer Correct ?    2 Yes 0 No

What command you execute to display the last five commands you have entered?..

Answer / venkatesh

history 5 or history -5

Is This Answer Correct ?    7 Yes 8 No

Post New Answer

More Linux Commands Interview Questions

List all the files beginning with A

10 Answers  


How you will uncompress the file?

7 Answers   Linux,


How do you clear the screen in linux?

0 Answers  


I want to see how many interfaces(ethernet cards) are working using single command?

8 Answers  


Explain how you would find a specific string in a file.

1 Answers  






What will happen when a system call is encountered in a user program?

0 Answers   Google,


Display the Disk Usage of file sizes under each directory in currentDirectory ?

8 Answers  


what is emacs editor and feature........???????????????????????????

1 Answers  


What are the basic commands in command prompt?

0 Answers  


what is snmp and for what purpose we are using in linux

4 Answers  


I have my default runlevel is init5 now i have configured to init 3,now i wanna run my system in init3 process without reboot the system .How will you do for this scenario?

6 Answers   Span Systems,


What is the command to check wwn # in linux?

4 Answers   Siemens,


Categories