Ubuntulinux solution: "changing the profile file cannot enter ubuntu"
Source: Internet
Author: User
Ubuntulinux solution: the method for changing the profile file to enter ubuntu is to configure the java environment yesterday, modify the profile file, save and restart the file, and enter the logon page. the password cannot be entered, so it's crazy !!! Hurry into the windows system to find a solution, the original use of vi...
Ubuntu linux solution: the method of "modifying the profile file cannot enter ubuntu" configures the java environment yesterday, modifies the profile file, saves and restarts, and enters the logon page. the password cannot be entered, crazy !!! In a hurry to go to the windows system to find a solution, the original use of vi to change the profile. If your linux is ubuntu10.10, follow these steps to go to the logon page, press shift + alt + ctrl + F1 to enter the root environment, and verify the user name and password. Enter: cd/etc to enter the etc file. enter:/usr/bin/sudo vi profile to enter the text editing mode of the profile File (you don't know if you can do this) the subsequent operation is to use the operation code in vi to delete the modified content. Save and restart. Appendix www.2cto.com vi delete operation code: x one character # x delete several characters, # represents a number, for example, 3x dw delete a word # dw delete several words, # represents by a number, for example, 3dw indicates deleting three words dd to delete a row. # dd deletes multiple rows and # indicates numbers, for example, 3dd indicates deleting the cursor row and the next two lines of the cursor. d $ delete the content from the cursor to the end of the line. J. clear the space between the row and the last line of the cursor, connect the cursor line with the previous line vi exit save code: shift +: Enter the tail line command mode: x should be the save and exit vi undo operation code: u command to cancel the last operation, you can use multiple times to restore the original operation U to cancel all operation dreamers.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.