How to edit inittab file?
Hi,
The default setting of linux is run level 5 (Red Hat 9) I want to use my system in Runlevel 1. For that purpose i 1st check the permission which were -rw-r--r-- I want to edit the File " vim /etc/inittab " in the terminal .please let me know which line should i edit so I may use it in a single mode. 2-The second thing i want to ask that before editing any important file which are /etc like "inittab" can i 1st make it's copy and keep it in my home directoty so,in case of any mistake I can get my original file? What u suggest me thanks in advance. mypass |
Quote:
Quote:
If you only need to operate in runlevel 1 once (or once in a while) there are ways to boot into that runlevel without having to edit the inittab file. For example, just pass "1" as an argument to the kernel boot line. Quote:
From command line, you can use "cp" to copy files. Use "cp -a" to preserve permissions and ownerships. "cp" also has a man page, just like almost every regular command. |
Hi,
Change the line : Code:
id:5:initdefault Code:
id:1:initdefault: You can take a backup of any file provided you have a read permission on it. To take the backup of the inittab file: Code:
cp /etc/inittab /home/harsha/inittab.bk Code:
cp /home/harsha/inittab.bk /etc/inittab Harsha |
All times are GMT -5. The time now is 07:35 AM. |