how to exit from vi editor in linux with save code example Example: vi save and exit //Save :w //Exit :q