Delete secific line from file in linux

You can delete any specific line in linux using sed command.

Create file as testing and add some text line
$ vim testing
line 1
line 2
line 3
line 4
line 5

Delete 3rd line from file
sed "3 d" testing

Delete 3rd line from file permanently
sed -i "3 d" testing