Difference between "sudo" and "su" command in Linux

Watch this video to find out the difference between "sudo" and "su" command in Linux

Пікірлер: 6

  • @Coder_DhruvArora
    @Coder_DhruvArora2 жыл бұрын

    Thank you for this video Helped in my home work 🙌

  • @DeepakSharma-ph4hq
    @DeepakSharma-ph4hq Жыл бұрын

    What is difference between su raj and su - raj ?

  • @yousofhashemzade5003
    @yousofhashemzade50032 жыл бұрын

    tnx ! very helpful

  • @technologywithbryant

    @technologywithbryant

    2 жыл бұрын

    Glad to hear that!

  • @umair7354
    @umair73543 жыл бұрын

    If I sudo - E, i can preserve the environment, but if I su - bryant, how can i preserve it?

  • @technologywithbryant

    @technologywithbryant

    3 жыл бұрын

    su does have an option to preserve environment: "-m, -p, --preserve-environment". Run "su --help" for help. However, my recommendation is to use sudo as seen in the video.