Hacker News new | ask | show | jobs
by bsilvereagle 1038 days ago
“$” for non-root shells and “#” for root shells instead of writing out sudo/su.
1 comments

This is exactly why. If you are doing linux maintenance, this is really helpful because you can tell if you should be running a specific command as root or user. If you are just giving instructions on what to do for a normal user, omitting it is probably fine. If you are doing something that will require both, it might be good to explain it at the beginning of your instructions.