8.1. Running Commands as root
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]:
sudo ...
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 root
If you are logged in as root
directly, you can simply run the command as listed in the manual, for example iptables -F
.
Footnotes