Computing.Net > Forums > Linux > switching from GUI to command Line

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

switching from GUI to command Line

Reply to Message Icon

Name: mariusz
Date: October 13, 2003 at 13:16:32 Pacific
OS: redhat linux
CPU/Ram: p4
Comment:

Hi
I have just installed RedHat Linux with GUI. However I want to play around in command line (or at least try) How do I switch from one to other??? Thank you



Sponsored Link
Ads by Google

Response Number 1
Name: J
Date: October 13, 2003 at 15:37:52 Pacific
Reply:

edit the inittab file /etc/inittab. In this file look for the default runlevel section.
The line you want to edit is as follow:
id:5:initdefault:
Set the default runlevel to 3 rather than 5.
id:3:initdefault:
Save, exit and restart your machine to see the changes.
When you log back in, you can type 'startx' to go back to the GUI if required.



0

Response Number 2
Name: JasonR
Date: October 13, 2003 at 18:24:17 Pacific
Reply:

Hit the buttons Control- Alt - F2

or Control- Alt - F3

or

Control- Alt - F4

...

Control- Alt - F7 -- back to Graphical


0

Response Number 3
Name: C_Legend
Date: October 14, 2003 at 01:26:47 Pacific
Reply:

Why not load a terminal in the gui? You should get a window containing a command prompt. But, the 2 above suggestions will also work.

Note:

JasonR is correct IF these lines are in your /etc/inittab file (and were properly loaded; "init q" to reload):

# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

(Personally, I remove a number of these to save memory, and this results in JasonR's CTRL-ALT-F7 becoming CTRL-ALT-F4 or whatever, based upon fewer ttys)

Good luck.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: switching from GUI to command Line

Switch from KDE to Text? www.computing.net/answers/linux/switch-from-kde-to-text/14322.html

Switching from KDE to GNOME www.computing.net/answers/linux/switching-from-kde-to-gnome/5533.html

command line tar/gzip not urgent www.computing.net/answers/linux/command-line-targzip-not-urgent/23245.html