Posts

Showing posts with the label Unix

Want Vi / Vim on your Bash command line

Put set -o vi  into your  ~/.bash_profile  (on Mac) or  ~/.bashrc  (on Linux).  Now, if you press  Esc  when you're on the command line, you can go backward/forward word-wise pressing B  resp.  W  or bring-up Vim's  VISUAL mode  pressing  V . After pressing  Esc  you can press  I  to get back to the  INSERT mode  to modify your command.

List all symbolic links in a Linux/Unix directory

ls -la | grep ^l