Feb 14, 2020 · Here's one of those terminal command tricks you can learn from seasoned experts — in this case, for getting past the "permission denied" message. If it's a long command, you can go up through the history and put Sudo in front of it, you can type it out again, or you can use the following simple command, which runs the previous command using Sudo:
The root user (superuser) There is a special user on each system with unlimited access to the system. This user has username and groupname of root and the numerical uid and gid of 0. This user is required to allow administrative actions that are not granted under the other users and for certain daemons that have full access to the system. (This is assuming that you wish to run restart and php commands using super user (root) privileges.And you use php command in usr/bin/ path ) However, if you wish to run every application using super user privileges, then add the following instead of what's above.You might not want to do that, not for ALL commands, very dangerous.