search

Home  >  Q&A  >  body text

linux下sudo install 和 install区别

是不是可以所有安装都用sudo?

巴扎黑巴扎黑2863 days ago778

reply all(6)I'll reply

  • ringa_lee

    ringa_lee2017-04-17 11:09:35

    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

    reply
    0
  • PHPz

    PHPz2017-04-17 11:09:35

    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.

    reply
    0
  • 高洛峰

    高洛峰2017-04-17 11:09:35

    sudo install: Increase the permissions of the current user to root and then run install
    install: Run install

    with the permissions of the current user

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 11:09:35

    Sudo refers to executing subsequent commands with super user privileges.

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 11:09:35

    Permission reasons.

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 11:09:35

    sudo switches to root privileges to execute commands

    reply
    0
  • Cancelreply