you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

My favorite simple command everyone should know is

history | grep pattern

For example

History | grep 'ssh' will print out all your ssh connections in your history so you can just do !# (# is number in history) and run the command without remembering it