This is the blog of freelance website designer and developer Ben Johnson, with thoughts on design, programming, frameworks, jquery and the latest technology.
Viewing entries posted in March 2012
  • useful VI bash commands

    Author: Ben Johnson

    Tags: , ,

    First of all you need to know how to close vi: ctrl-c : q!   These are some of the basic and most common used command to get you started. :q -> quit :w -> save :q! -> quit and don't save :x -> save and quit :[number] -> go to line number G -> go to end of file dd -> delete line p -> "put" line yy -> "copy" line :s/[searchfor] -> searchu -> undo last type word Further examples can be found at: