Quantcast
Viewing all articles
Browse latest Browse all 4825

Advanced users • lxterminal commands

I'm confused what the command "lxterminal" does from the command line.

This code brings up a new active terminal.

Code:

lxterminal
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.

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



Viewing all articles
Browse latest Browse all 4825

Trending Articles