historyshows numbered command history, most recent last!nretrieves command numbernand executes it!n:pretrieves command numbernand places it into the command history without executing it. Up arrow then retrieves the command for editing
shopt -s histverifymodifies command recall behaviour so that!njust retrieves the command and does not execute it (ie allows for editing before execution)
%historydisplays command history from current session without line numbers
-nInclude line numbers-g patternsearch for pattern (wild cards:?single character,*multiple characters). As-gsearches through full history (not just the current session), an empty-gmodifier can be used to retrieve complete command history-f filenameoutput history to file