BS

Sunday, April 28, 2019

VI Editor

Delete All lines using vi editor:- 

1) open the file > vi filename.ext

2) Delete all the lines >

  1. Esc gg  > select all the lines
  2. Esc dG > delete all the lines
  3. If you want to paste already in clipboard - Esc i + right click 

 ------------------------------------------------------------------------------------

COMMENDS:

: > says commend starts
1 > Starting line
$ > end line
d > delete


No comments:

Post a Comment