DrGlitch's Weblog Stuff that bounced my mind.


Last update on .

Need to keep track of this

Shamelessly copied from this tiny twitter thread by Kristian Köhntopp


$ !keks

Search history for the last command starting with keks


$ !?keks

Search history for the last command containing keks


$ ^keks^cookie

Repeat the previous command, after replacing keks with cookie


$ shopt -s histverify

Show result of above history expansion before exec.


$ rm -rf keks

Starting a command with a space will prevent it from entering the history.


$ unset HISTFILE

unsetting HISTFILE or HISTFILESIZE will prevent the shell from logging commands

And of course, as mentioned later in that discussion: . inserts the last used word of a shell cmdline.

Pingbacks

Pingbacks are open.

Trackbacks

Trackback URL

Comments

No comments yet.

Post your comment