Bring up enp1s0 using the distribution's registered network configuration.
Use ifup.
Which command is appropriate?
ifup INTERFACE activates an interface using distribution-managed configuration. The exact configuration files and implementation vary by system.
Detailed explanation
ifup enp1s0Correct. ifup enp1s0 activates the configured interface.
Correct. ifup enp1s0 activates the configured interface.
ifdown enp1s0Incorrect. ifdown stops the interface.
Incorrect. ifdown stops the interface.
ifconfig enp1s0Incorrect. ifconfig without an assignment primarily displays information.
Incorrect. ifconfig without an assignment primarily displays information.
nmcli connection show enp1s0Incorrect. nmcli connection show displays a profile rather than activating it.
Incorrect. nmcli connection show displays a profile rather than activating it.
Try it yourself
An example you can run in a temporary verification environment.
command -V ifup 2>/dev/null || printf '%s
' 'ifup is not installed'Expected result
ifupのコマンド情報、または未導入を示すメッセージKey points
- ifup brings an interface up
- It reads persistent configuration
- ifdown stops it
Notes
- Environment: POSIX shell / 状態変更なし
- 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.