Distributions
› Ubuntu
› Fedora
› CentOS
中文资源站
› 网易开源镜像站
mingtdlb
V2EX  ›  Linux

sudo -i 和 su - root

  •  
  •   mingtdlb · Jan 22, 2021 · 2376 views
    This topic created in 2120 days ago, the information mentioned may be changed or developed.

    sudo -i 和 su -l root 效果是不是一样啊?切换成功后感觉没差别

    • -i run login shell as the target user; a command may also be specified
    • -l make the shell a login shell
    1 replies  •  2021-01-25 12:52:29 +08:00
    julyclyde
    julyclyde
    Jan 25, 2021
    1
    效果一样,但是语义不一样
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   975 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 22:03 · PVG 06:03 · LAX 14:03 · JFK 17:03
    ♥ Do have faith in what you're doing.