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

Posted on 2004-11-05
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
    LVL 7

    Expert Comment

    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

    > 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

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
    Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
    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…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now