Recent content by gioir

  1. G

    Differences between bash, bash -l, su username, su - username, sudo -s -u username, sudo -i -u suername ?

    Thank you for your detailed information. I think that bash does nothing with the environment variable A1 in the login scripts, but su - or sudo itself does unset it. When I execute bash, bash -l, or su username command, the environment variable A1 is not unset from starting /etc/profile to...
  2. G

    Differences between bash, bash -l, su username, su - username, sudo -s -u username, sudo -i -u suername ?

    Hello, I am a newbie in Linux and am studying the bash shell. I set an environment variable A1=100 (export A1=100). After that, I executed each commands in the title. The username is the same one as the one I am logging in. What I expected is: commands executed value of A1 bash -l su -...
Top