Deliver mail to local alias ops to both alice and bob.
Which /etc/aliases line is appropriate?
Separate multiple alias destinations with commas to deliver one local alias to multiple recipients.
Detailed explanation
ops: alice bobIncorrect. A space alone is not the normal multiple-destination separator.
Incorrect. A space alone is not the normal multiple-destination separator.
ops: alice, bobCorrect. ops expands to both alice and bob.
Correct. ops expands to both alice and bob.
alice,bob: opsIncorrect. It reverses the expansion direction.
Incorrect. It reverses the expansion direction.
ops = alice,bobIncorrect. aliases uses colon syntax.
Incorrect. aliases uses colon syntax.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s
' 'ops: alice, bob' | cut -d: -f2Expected result
alice, bobKey points
- Comma separates destinations
- Left side is one alias
- Whitespace improves readability
Notes
- Environment: POSIX cut / 模擬設定のみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.