Linux / UNIX Tech Support Forum
This is a discussion on Editing a file in the Rescue mode shell within the Linux software forums, part of the Linux Getting Started category; I made a small syntax error while adding some script to /usr/share/initramfs-tools/scripts/local. (This was to make the system boot in ...
|
|||||||
| Linux software General questions and discussion about Redhat/Fedora Core/Cent OS, Debian and Ubuntu Linux related to softwares should go here. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I made a small syntax error while adding some script to /usr/share/initramfs-tools/scripts/local. (This was to make the system boot in a degraded mode) Now the system will not boot.
So I booted from the CD and went into the Rescue Mode shell, did a cd to the appropriate directory, did a dir and there was my file "local". VIM was brought up and none of the keys work correctly due to the wrong terminal emulation. All I can do is start VIM and exit it. How does one change the emulation so VIM works correctly? |
| Sponsored Links | ||
|
|
|
||||
|
You are not using VIM. VIM is too big to load from rescue mode. You are using old good vi. To move keys use
Code:
** To move the cursor, press the h,j,k,l keys as indicated. **
^
k Hint: The h key is at the left and moves left.
< h l > The l key is at the right and moves right.
j The j key looks like a down arrow.
v
1. Move the cursor around the screen until you are comfortable.
2. Hold down the down key (j) until it repeats.
Now you know how to move to the next lesson.
To save press w To exit press q Hope this helps. If you have access to another UNIX / Linux box see vi / vim tutorial, section moving keys. Code:
vimtutor
__________________
Vivek Gite Linux Evangelist |
|
|||
|
just use vi file
change or add some lines , then Esq :wq! check the file with more file or cat . Regards www.unixmen.net team |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell Script To Outputs File Permissions of Most Recently Modified File | glen_4455 | Shell scripting | 1 | 25-08-2008 02:39 PM |
| shell script to search specific file from txt file inside zip file and extract it | aasif.shaikh | Shell scripting | 2 | 31-05-2008 06:44 PM |
| Real-Mode & Protected-Mode | amsreeku | Linux hardware | 2 | 04-09-2007 09:02 PM |
| USB pen in Rescue mode in RHEL4 | Rustem | Linux software | 1 | 20-12-2005 01:31 AM |
| Rescue mode in RHEL 4 | Ashish Pathak | Linux software | 1 | 25-05-2005 07:27 PM |