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