What does ampersand mean at the end of a shell script line?

Thu Ha

New member
What does ampersand mean at the end of a shell script line?
Answer
Single Ampersand
This trailing
ampersand directs the shell to run the command in the background
, that is, it is forked and run in a separate sub-shell, as a job, asynchronously. … A single ampersand & can also delimit a list of commands to be run asynchronously.
 

Tìm kiếm

Back
Top