adplus-dvertising
frame-decoration

Question

To display the last five used commands, which one of the following commands is used (in bash shell)?

a.

history 5

b.

history -5

c.

history

d.

history 5-

Posted under UNIX

Answer: (a).history 5

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. To display the last five used commands, which one of the following commands is used (in bash shell)?

Similar Questions

Discover Related MCQs

Q. Which of the following symbols are used for accessing previous commands by event numbers?

Q. We can use relative addressing while executing previous commands.

Q. We can also execute previous commands by context.

Q. Which symbol is used as a shorthand for using the last argument to the previous command?

Q. To reverse any setting updated by set command we can use ____ symbol.

Q. The ____ acts as a shorthand representation of the home directory.

Q. Every shell uses at least one startup script in the user’s home directory, which is executed when the user logs in.

Q. Which file is executed every time a second shell is called up?

Q. Which of the following are history variables?

Q. Which one of the following command will search history list for previous command having the last occurrence of string cvf?

Q. Which of the following is not a major Unix shell?

Q. Which was the first Unix shell?

Q. The purpose of the PATH variable is to

Q. What special character is used to designate the users home directory in the C shell?

Q. The letters "rc" in .cshrc represent

Q. A personal run control file for bash is

Q. Personal run control files are stored

Q. Lines in a run control file that begin with a # sign are

Q. To see what aliases are active, you type

Q. The shell in the Unix system is the