Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: How do i avoid having to open new terminal /-tab

  1. #1
    Join Date
    May 2013
    Beans
    6

    How do i avoid having to open new terminal /-tab

    Hi,

    Is there a way to run programs from the terminal without having to open a new terminal / tab after program start?
    Ubuntu 13.04

    Thanks in advance

  2. #2
    Join Date
    Jan 2009
    Location
    ::1
    Beans
    2,484

    Re: How do i avoid having to open new terminal /-tab

    Put a " &" at the end of the command line?

  3. #3
    Join Date
    May 2013
    Beans
    6

    Re: How do i avoid having to open new terminal /-tab

    Thanks for answer!

    It still runs all the output in the terminal window, but allows me to Ctrl-C without exiting the program.
    When i tried Ubuntu 12 the program just opened and thats was it. Isnt there a way to do this in U13 ?

  4. #4
    Join Date
    Jan 2009
    Location
    ::1
    Beans
    2,484

    Re: How do i avoid having to open new terminal /-tab

    What is your ultimate goal? If you want no terminal and no output at all, press ALT - F2, and then type the command.

  5. #5
    Join Date
    May 2013
    Beans
    6

    Re: How do i avoid having to open new terminal /-tab

    It would be no output in the terminal.
    I know i can do the Alt-F2 thing, but since im trying linux i want to do as much from the terminal as possible

    edit: typo

  6. #6
    Join Date
    Jan 2006
    Location
    Sunny Southend-on-Sea
    Beans
    5,424
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How do i avoid having to open new terminal /-tab

    If you're looking to do sensible cool stuff in the Terminal then it's all about screen. Not strictly necessary in this case, but awesome nonetheless.
    None but ourselves can free our minds

  7. #7
    Join Date
    Oct 2009
    Location
    Elgin, IL USA
    Beans
    2,762
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How do i avoid having to open new terminal /-tab

    You may want to consider installing screen if you want multiple sessions in one terminal. Example http://www.thegeekstuff.com/2010/07/...mand-examples/
    i5 650 3.2 GHz, 8 GB, nvidia GTX 750 Ti, 32" 1080p | i7-4700MQ, 8 GB, Intel HD 4600/nvidia GTX 765M, 15.6" 1080p | etc.

  8. #8
    Join Date
    May 2009
    Location
    Courtenay, BC, Canada
    Beans
    1,661

    Re: How do i avoid having to open new terminal /-tab

    you could suppress it's output and fork it
    Code:
    command -opts &>/dev/null &
    you can also hit ctrl+z while a program is running and then do the same thing
    Code:
    command
    # -- ctrl+z --
    bg &>/dev/null
    if you want to return to it instead
    Code:
    command
    # -- ctrl+z --
    fg
    screen is also a useful tool if standard flow control isn't enough

  9. #9
    Join Date
    Jun 2006
    Location
    Brisbane Australia
    Beans
    713

    Re: How do i avoid having to open new terminal /-tab

    Note that tmux has essentially superseded screen nowadays. If you are learning something new you may as well learn tmux. It has more sensible defaults and a few better features. I have used screen for 20 years but use tmux on all modern linux/unix systems now.

  10. #10
    Join Date
    May 2013
    Beans
    6

    Re: How do i avoid having to open new terminal /-tab

    How do i 'undo' this command
    Code:
    command -opts &>/dev/null &
    Im gonna try out tmux / screen

    Thanks for the tips

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •