8.1. Running Commands as
Some commands or scripts in this manual are intended to be run as
root. This section describes two methods for doing so.
8.1.1. Running Commands as
root With sudo
If you are logged in as a user who can run commands as
root via sudo, simply add the following in front of the command listed in the manual 1:
For example, if the command listed in the manual is
iptables -F, you would type
sudo iptables -F.
8.1.2. Running Commands Directly as
If you are logged in as
root directly, you can simply run the command as listed in the manual, for example
Depending on your system's sudo configuration, you may be prompted for the user's sudo password.