I'm confused what the command "lxterminal" does from the command line.
This code brings up a new active terminal.
The code below also brings up a new active terminal and prints "[1]" and a PID (?) in the original terminal. I thought that "&" would run the command in the background and the new terminal wouldn't be active.
When "lxterminal" runs after the command "lxterminal &", it brings up a new terminal and returns "[1]+" and "DONE lxterminal" in the original terminal. I'm not sure why typing "lxterminal" after the command "lxterminal &" would be different from typing "lxterminal" on its own as the first command.
I know that "&" is used to run a process in the background, but that doesn't seem to explain why the new terminals are active or why it causes "lxterminal" to behavior differently after entering the command "lxterminal &". Also, is the number after [1] really a PID? What does [1]+ mean?
I appreciate any insight here.
This code brings up a new active terminal.
Code:
lxterminal
Code:
lxterminal &
When "lxterminal" runs after the command "lxterminal &", it brings up a new terminal and returns "[1]+" and "DONE lxterminal" in the original terminal. I'm not sure why typing "lxterminal" after the command "lxterminal &" would be different from typing "lxterminal" on its own as the first command.
Code:
lxterminal &lxterminal
I know that "&" is used to run a process in the background, but that doesn't seem to explain why the new terminals are active or why it causes "lxterminal" to behavior differently after entering the command "lxterminal &". Also, is the number after [1] really a PID? What does [1]+ mean?
I appreciate any insight here.
Statistics: Posted by beckerc — Sun Mar 10, 2024 8:14 pm