ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i need to know a command to switch from X to a console. I need something with the same effect of: "Ctrl+Alt+F#" (with #=1,2,....,n); but as i need to put this command into a bash script file, it must be an istruction not a sequence of keystroke.
Thanks at all in advance.
Wizard
Last edited by wizard7423; 12-29-2004 at 07:57 AM.
If you want to stop X, you can do service dm stop, or if that is not available, init 3. I'm not sure what effect, if any it will have to put these in a script.
hi, and thanks for your answer...but i don't need to stop X server. I wish switch from x to a console (outside x) with a command, and not with the usual Ctrl+Alt+F#.
some kernels/distros disable certain terminals, such as slackware and only the 6th terminal is available for use. Hope this helps
Of course...thanks for your post. Anyway i know this feature, but i'm looking for a "command" that has the same effect of Ctrl+Alt+F# , where #=1,...,6
but that i could put that instruction into a script. (Ctrl+Alt+F# is a keystroke. I cannot put a keystroke into a bash-script)
I hope to be clear this time.
Sorry for my bad english...and thanks in advance for your replies.
wizard
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.