In Linux, History is a very useful command to show you all of the last commands that have been recently used. Grep is a Linux command-line tool used…

In Linux, History is a very useful command to show you all of the last commands that have been recently used. Grep is a Linux command-line tool used to search for a string of characters in a specified file. Write grep and history command to find previous commands in Linux.

From the BCC Assistant Programmer (CSE) February 2021 – Written (BUET) exam, question 15 of 20.

More from this paper