How do I find previous commands in unix?



How do I find previous commands in unix?..

Answer / Khushboo A Risalat

In Unix, you can view your previous commands using the History command. To display them, simply type `history`. To run a specific previous command, use the ! followed by the command number.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix Commands Interview Questions

Why is it called a shebang?

1 Answers  


Explain command to show the space allocation of files?

1 Answers  


How to add content of one file into another file at the beginning

12 Answers  


What command is used to replace the existing string with some other?

8 Answers   TCS,


Explain the read, write, and execute permissions on a UNIX directory.

5 Answers  


what is mount ,tell me about mount ,how can u use in real time project??

12 Answers   Symphony,


What is the search command in unix?

1 Answers  


How does pipe () work?

1 Answers  


1-how will you display a file whose name is starting with '- '? 2-how will you add a patten at end of every line in vi editor?

7 Answers  


How to check whether some services are running in another server or not? Suppose i am currently in a server named A.I want to check whether some services are running in server B without logging into the server B.

3 Answers   Amazon, MBA, Syntel, TCS, Unisys,


What is the comma to display different lines that are found when compare two files?

1 Answers  


What does sed command do in unix?

1 Answers  


Categories