I’ve always wondered this but finally got the answer as to why you should use:
$ sudo su -
instead of using:
$ sudo su

When adding the ‘-‘ character to the end of this command, you are also put into the PATH of the superuser. Without it, you cannot access things like the ‘service’ command for restarting services.

Post Promoter Pro

Posted by Chris Klosowski

Hi, I'm Chris Klosowski. Currently I am a Lead Developer of Easy Digital Downloads, where we build the easiest way to sell digital products with WordPress. I am also the person behind Post Promoter Pro, the most effective way to promote your WordPress Content.

Leave a reply

Your email address will not be published. Required fields are marked *