Question
a.
history 5
b.
history -5
c.
history
d.
history 5-
Posted under UNIX
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?
View solution
Q. We can use relative addressing while executing previous commands.
View solution
Q. We can also execute previous commands by context.
View solution
Q. Which symbol is used as a shorthand for using the last argument to the previous command?
View solution
Q. To reverse any setting updated by set command we can use ____ symbol.
View solution
Q. The ____ acts as a shorthand representation of the home directory.
View solution
Q. Every shell uses at least one startup script in the user’s home directory, which is executed when the user logs in.
View solution
Q. Which file is executed every time a second shell is called up?
View solution
Q. Which of the following are history variables?
View solution
Q. Which one of the following command will search history list for previous command having the last occurrence of string cvf?
View solution
Q. Which of the following is not a major Unix shell?
View solution
Q. Which was the first Unix shell?
View solution
Q. The purpose of the PATH variable is to
View solution
Q. What special character is used to designate the users home directory in the C shell?
View solution
Q. The letters "rc" in .cshrc represent
View solution
Q. A personal run control file for bash is
View solution
Q. Personal run control files are stored
View solution
Q. Lines in a run control file that begin with a # sign are
View solution
Q. To see what aliases are active, you type
View solution
Q. The shell in the Unix system is the
View solution
Suggested Topics
Are you eager to expand your knowledge beyond UNIX? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!