Fri Mar 21, 2014 2:16 pm
If you want to remove a line you added to a file, if you don't know how to delete it, then you just put a pound sign (#) at the start of the line, which turns it into a comment.
This is lesson that before you edit any system files, it is wise to make a backup of them so if something gets broken, you still can use the old file.
cp -p oldfilename oldfilename.bak
If you want to remove something at the end of a line, how to do that depends on what text editor you are using. In some, all you have to do is go into the file and backspace over the words or characters you want to remove, and save the file. In vi, you position the cursor on the line, and to delete the line, type :d if you are not in visual mode.
FORUM TIP: To view someone's posting history, sign in, click on their user name, then on "Search User's Posts." || Running ArchLinuxArm on Model 2B and 512MB Model B