Looking for shortcut key for Linux terminal

1

1

I opened a program via linux terminal, and after some search in Google I find out that I can close the program by Ctrl+C. If I want to run the program, but at the same time have a new line in the command terminal (like I have when I close the program) to do some other work. Is there any shortcut key?

enter image description here

rashed azad

Posted 2015-04-30T20:33:16.860

Reputation: 125

Question was closed 2015-05-08T17:58:43.860

Answers

1

You have different possiblities:

If your program is already running

Press CTRL+Z to suspend your program. It will not be running now. To resume the program in the background, type bg and press ENTER.

If you want to start a new program in the background directly

Simply add & to your program before you start it:
$ geany "do_while.cpp" &

You might find that the program outputs status or error messages on your shell. These messages will not directly affect the commands you type, but can be very disturbing. You can suppress/discard this output by redirecting it to /dev/null:
$ geany "do_while.cpp" 1>/dev/null 2>/dev/null &


For more information on job management in the Shell:

Slizzered

Posted 2015-04-30T20:33:16.860

Reputation: 1 256