Often a question can only be answered with a command that must be run as root. Depending on your distribution of choice you might be used to doing this with
sudo. However, it is probably undesirable to post the command with
sudo attached since someone who is looking for a quick fix might just run the command (which might not be what they need to run) without actually looking at the command and what it does. Additionally, sudo isn't necessarily used on the user's system. Should we have a conventional way for denoting when something needs to be run as root?
Here are some possible conventions:
- Place a
#before the command, denoting the common character used at the root prompt. The problem with this is that many who are new to unix might not recognize this.
- Placeing something like "(as root):" before the command. The problem with this (and the above option) is that the user may not know how to run something as root.