Linux Shell HistoryThe 'history' command will display a list of last commands used in the shell (shell history). Syntax: Example: Look at the above snapshot, we have used history -10 (you can use any integer) command, it displays list of last ten commands. Note: "history -c" clears the list of all the commands from history.Ctrl + rThe keys 'ctrl+r' executes the last command from history matching the specified characters that you type. Syntax: Example: Look at the above snapshot, we have pressed 'ctrl + r' followed by two characters ca and it has found the last command matching characters 'ca'. Next TopicShell History Commands |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India