Find the answer to your Linux question:
Results 1 to 6 of 6
to the bash command prompt...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    May 2003
    Posts
    123

    If I type xterm in a console will it take me...


    to the bash command prompt

  2. #2
    Linux Newbie
    Join Date
    May 2003
    Posts
    123

    actually..

    i just tested it, and it didn't work



    is there a way to boot to just the command prompt, without loading X?

  3. #3
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Why, of course. That's the "real" usage of a UNIX system. You can do it after your X server is started as well, with several methods. First, there are already several virtual terminals started by the kernel. Press Ctrl+Alt+F1 in X to get to one of them. If you log in there and run telinit 3 as root, that will stop the X server and you will be in pure textmode.
    Also, to boot to runlevel 3 at startup, add a "3" to the kernel command line. To always to that, check your /etc/inittab and change the initdefault to 3.

  4. #4
    Linux Newbie
    Join Date
    May 2003
    Posts
    123
    ok, if I use the telinit 3 thing, and exit X, can I get back into it?

  5. #5
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Yeah, just reenter runlevel 5 with "telinit 5". All runlevels are described in /etc/inittab.
    The X server is usually started on /dev/tty7, so if you just press CTRL+ALT+F1 and want to get back, press ALT+F7. (CTRL+ALT+Fn is used while in X, and ALT+Fn is used at text mode)

  6. #6
    Linux Newbie
    Join Date
    Aug 2001
    Location
    USA, Texas
    Posts
    217
    You can also use startx. Just leave your run level at 3. Whenever you want X use startx ... whenever you want to get your console back ... just log off your window manager.
    [ [ SykkN alloc ] initWithThePowerTo: destroyYouAll ];
    /* Don\'t make me use it! */

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •