|  | |
01-25-2005, 02:15 PM
|
#1 (permalink)
|
True Techie Join Date: Apr 2004 Posts: 202
| runlevel command? I'm trying to use the runlevel commnad on my fedora core 3 terminal but is says command not found. BTW, I'm studying for the Linux + and want to test everything I read but this is not showing up. the init 1 command won't work either. How do you go into single user mode then?
Thanks,
Tom
__________________ A+, Network+, and powerpoint certified
Studying Linux+ |
| |
01-25-2005, 05:42 PM
|
#2 (permalink)
|
Master Techie Join Date: Apr 2004 Posts: 2,534
| it varies a bit from distro to distro, but as root use telinit #, where # is the runlevel you want, be careful though, do not use level 0 or 6
for more details do 'man init' and look at the man page |
| |
01-26-2005, 12:27 AM
|
#3 (permalink)
|
True Techie Join Date: Apr 2004 Posts: 202
| Is there a command to display runlevel?
__________________ A+, Network+, and powerpoint certified
Studying Linux+ |
| |
01-26-2005, 01:02 AM
|
#4 (permalink)
|
Junior Techie Join Date: Jan 2005 Posts: 94
| In Red Hat you just type runlevel
__________________ Charles
Visit my Site
http://www.pc-fix.info |
| |
01-26-2005, 02:14 AM
|
#5 (permalink)
|
True Techie Join Date: Apr 2004 Posts: 202
| at the terminal window I type runlevel and it says command not found . I don't know if it is the distro or what. Fedora is a red hat project right? So you would think it would be the same.
__________________ A+, Network+, and powerpoint certified
Studying Linux+ |
| |
01-26-2005, 10:53 AM
|
#6 (permalink)
|
Junior Techie Join Date: Jan 2005 Posts: 94
| You need to be root. press ctrl. alt. f1 to go to true comand line. Then type su root
This will prompt you for root password. type your password. Once logged in as root type su - this will , in a simple way to put it give root its own shell to work from. Then type your runlevel command.
If you are in runlevel 5, It will most likely come back with a 5 3 five for your default runlevel and 3 for the shell your in. To go back to Xwindows type ctrl alt f7
__________________ Charles
Visit my Site
http://www.pc-fix.info |
| |
01-27-2005, 03:33 AM
|
#7 (permalink)
|
True Techie Join Date: Apr 2004 Posts: 202
| I tried what you said but instead I loged in at the root to begin with because I thought I would have to be it anyway and it worked. But get this, I tried it on a gui terminal session and it worked. If I do it like I have been when you log in as the user and substitute user command like charles said it will give a bad command message. I was under the impresion that there was no limit but I guess there is. This is messed up! maybe I should try debian.
__________________ A+, Network+, and powerpoint certified
Studying Linux+ |
| |
01-27-2005, 08:59 AM
|
#8 (permalink)
|
Master Techie Join Date: Apr 2004 Posts: 2,534
| some commands require that you be root and not su to root, changing to debian wont change anything |
| |
01-27-2005, 03:01 PM
|
#9 (permalink)
|
True Techie Join Date: Apr 2004 Posts: 202
| When I try to change runlevel. example: init 3, it gets hung up and no promt just a cursor. any reason why?
BTW, what shell does debian run, is it bourne agian shell also.
__________________ A+, Network+, and powerpoint certified
Studying Linux+ |
| |
01-27-2005, 04:13 PM
|
#10 (permalink)
|
Master Techie Join Date: Apr 2004 Posts: 2,534
| no clue on first question
probably BASH on second, but it doesnt matter cause you can run whatever shell you want with linux, slackware comes with 4 of them and there's a couple more that can be downloaded |
| |  | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | |