Quote:
Originally Posted by gardenair
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--
|
What file do these permissions belong to? What is your effective user id when doing the editing?
Quote:
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.
|
The inittab file comes well commented, that includes a note letting you know which line is responsible for setting the
default runlevel. You should however read the inittab man page (just type "man inittab") before doing anything at all.
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:
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?
|
You can copy any file to any location. But if you don't know how to copy a file, in first place, you shouldn't be messing with system files...
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.