Dougy Mak's Blog

MY BLOG!

Archive for September, 2011

vi: Show recent command history

You can show the last few commands used in vi by typing q:

:q is for quitting, while q: is for recent commands.

No comments

Moving “dot” files

When moving dot files with a asterisk, the asterisk does not include the dot files unless you turn on “dotglob”.

To turn on (setting the option):

shopt -s dotglob

To turn off (unsetting the option):

shopt -u dotglob

No comments