💻 Software
Why run a Linux shell command with '&'?
Fresh5 days ago
Mar 15, 202697602 viewsConfidence Score0%
0%
Problem
I am using Red Hat Linux Enterprise version 5. I've noticed people sometimes running commands with a couple of options. For example, in the below command, there are two signs. What is the purpose of them? Are they always used together with nohup?
Error Output
nohup foo.sh <script parameters> >& <log_file_name> &
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Why run a Linux shell command with '&'?
Low Risk
In a Bash shell script, the ampersand “&” is used to fork processes: It will cause the find command to be forked and run in the background (you can always kill it by its PID).
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix