No, the rm command is used to remove a file, not a line. If you use the rm command then it will remove the entire file. To remove a line you can use the sed command.