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

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?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.)
> 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).

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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.