If installed into the $PATH of the system (you can enter commands directly on the command line in the future), you generally need sudo to elevate yourself to root privileges.
If you install it in the current folder (you will need ./command in the future), sudo is not needed
Whether you need to use sudo depends on which directory you install to. For example, if you install to your home directory, of course you don’t need sudo. If you install to a directory without permissions, you need to use sudo to elevate the directory.
If installed into the $PATH of the system (you can enter commands directly on the command line in the future), you generally need sudo to elevate yourself to root privileges.
If you install it in the current folder (you will need ./command in the future), sudo is not needed
Whether you need to use sudo depends on which directory you install to. For example, if you install to your home directory, of course you don’t need sudo. If you install to a directory without permissions, you need to use sudo to elevate the directory.
sudo install: Increase the permissions of the current user to root and then run install
with the permissions of the current userinstall: Run install
Sudo refers to executing subsequent commands with super user privileges.
Permission reasons.
sudo switches to root privileges to execute commands