What does the ampersand do in Linux?

Thảo Justin

New member
What does the ampersand do in Linux?
Answer
An ampersand does the same thing as a semicolon or newline in that it
indicates the end of a command
, but it causes Bash to execute the command asynchronously. That means Bash will run it in the background and run the next command immediately after, without waiting for the former to end.
 

Tìm kiếm

Back
Top