Page 2 of 2

Re: How often do you have to look up the command for somethi

Posted: 2016-12-20 10:25
by swirler
I've scheduled periodic backups (cronjobs) of my .bash_history file and grep through them when I can't remember a command I know I've used already.

I've also seen people appending some sort of tag to a command in order to recall it quickly, maybe something like

Code: Select all

ls -laF --group-directories-first #dir
the idea being that just typing #dir after hitting CTRL+R would bring up the command - of course it's kinda useless with a short command like the example above, but I find it useful with longer ones.