linux search in last commands code example Example: linux search last commands Press Ctrl+R; you’ll see (reverse-i-search).