SPACEIO ~ LINUX  Command of the Day #7

history | grep: find the command you ran last week

You ran that command last week. What was it?

history | grep ssh

What it does

history lists the commands you've typed. Pipe it into grep to search it. Press Ctrl+R to search as you type.

Why it matters

Admins and investigators read command history to see what happened on a machine. It is also a place passwords end up when typed by mistake.

Try it

Run it and find the oldest command you can. Share what you found in the community.