Delete All lines using vi editor:-
1) open the file > vi filename.ext
2) Delete all the lines >
- Esc gg > select all the lines
- Esc dG > delete all the lines
- If you want to paste already in clipboard - Esc i + right click
------------------------------------------------------------------------------------
COMMENDS:
: > says commend starts
1 > Starting line
$ > end line
d > delete