How to delete the line in Linux/Unix?

Follow the below steps to delete the single line in the file in Linux/Unix
Open the file in vim editor (ex:vim text.txt)
Press "i" button to change into write mode
Go to the line which you want to delete using up and down arrow
Then press "dd" then particular line will be removed
Save the changes "wq!"
Post a Comment (0)
Previous Post Next Post

Recent Posts