[Last Call] Learn how to a build a cloud-first strategyRegister Now


While in X ... (running a command via a terminal window) ...

Posted on 2004-11-05
Medium Priority
Last Modified: 2010-04-20
Hi:  I hope I word this the 'right' way ...

While I am in an X session and have a terminal window open ...

Is there a way to have a command I type in RUN as if it was in 'run level 3' (init 3) and NOT as a command being put in from a terminal window in an X (init 5) window?

I ask this because I want to know if the command I am using from the X terminal window will work when I am in a NON X session, or if that command ONLY works from a X session.

NEXT ....

Is there a 'difference' between using the words 'terminal' and 'console' ... and if there is, can you tell me what it is?

Question by:pugdog_fan

Expert Comment

ID: 12508369
Console is usually NON  GUI Linux (without X that is)
Terminal is when you have a terminal application open. Eterm, xterm, aterm, etc...
A program that's run under a terminal in X is working when you switch to console, though you might not be able to operate it if your are not trying to connect to that certain app with a client (considering it's a daemon of somekind.)
LVL 38

Expert Comment

ID: 12508793
> if the command I am using from the X terminal window will work when I am in a NON X session
It depends on your "command". If the command/application request the Xsession, then you need to run it in X-terminal.
Otherwsie, the command will be run ok in both text mode or X-terminal.
In other words, all the command work in text mode (run level 3) will work in X-terminal (run level 5).

LVL 17

Accepted Solution

owensleftfoot earned 750 total points
ID: 12508818
When you are in the GUI (X session) press ctrl + alt + F2(or F3 or F4 etc) to switch to a virtual console where you will get a login prompt. Login and try your command - if it works it will work in init 3 . Logout and press ctrl + alt + F7 to get back to your GUI.

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month18 days, 10 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question