techfolks linux tutorials
Linux

How to edit or write a file in Linux


To open a file

vi filename

to edit file press insert or i

and to exit escape :wq! 

exit without write anything

escape:q!