Sunday, May 5, 2024
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 80927  / 3 Years ago, tue, september 14, 2021, 6:11:13

First off sorry for the noob question, I'm sure it's been asked before but I have no idea how to phrase it eloquently...



Sometimes when I open/run/execute (unsure of proper term) an application (?lol) from the terminal like geany ie:



geany filename.php


or maybe run a node.js script:



node server.js


The command will execute fine, but I'm then left without the ability to execute any other commands unless I open another terminal. my root@pcname:~$ is gone and when I try typing in something else and hitting Enter it just breaks to the next line.



I've noticed that sometimes I can hit CTRL+D and it'll give me my prompt back (sorry is prompt even the right name for it?)



So could someone please explain why this is happening and how I can get back to the prompt without opening another terminal.



Thanks, and sorry again for my noobery.


More From » command-line

 Answers
7

Ah, you're hitting the wrong key. It's Control + C. This is the command to force the current running application in the terminal to end. If you end the command it will also end the corresponding open application. So if you want to execute more commands in the same terminal, you have to press Control + C to exit the program, which will also exit geany. So it's best to simply run programs through the GUI, therefore saving you a lot of terminal windows. Or you can also use Ubuntu's run command function by pressing Alt + F2 and typing the command you want to run, no terminal required.


[#39332] Tuesday, September 14, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
pilun

Total Points: 270
Total Questions: 100
Total Answers: 94

Location: England
Member since Sat, Feb 13, 2021
3 Years ago
;