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 modeGo to the line which you want to delete using up and down arrowThen press "dd" then particular line will be removedSave the changes "wq!"