How can I delete all lines in a file using vi?

Subscribers:
4,130
Published on ● Video Link: https://www.youtube.com/watch?v=8F3likx2pMI



Duration: 5:28
3 views
0


How can I delete all lines in a file using vi?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!

(unix.stackexchange.com/users/87669/cold)Cold |
(unix.stackexchange.com/users/33055/anthon)Anthon |
(unix.stackexchange.com/users/79818/archemar)Archemar |
(unix.stackexchange.com/users/10762/chris-down)Chris Down |
(unix.stackexchange.com/users/21471/kenorb)kenorb |
(unix.stackexchange.com/users/25940/tankorsmash)TankorSmash |
A special thanks goes out to the (https://unix.stackexchange.com/questions/161821/how-can-i-delete-all-lines-in-a-file-using-vi)Stackexchange community |

I wish you all a wonderful day! Stay safe :)

vi







Tags:
vi