What does " y" stand for in installation and how being added to a group works - griffinsnest/tech-Jorunal-1 GitHub Wiki

What does "-y" do?


According to the manual entry for the command in the Linux, which for later inquiries like this remember you can use the command man [any base command] will display the command and any options that could b implemented with it, the -y option basically makes the command enter yes to any prompts it'll bring up, basically it'll assume "yes" as the answer to all prompts for the installation process and thus install it non-interactively. So if you don't use it you'd need to answer any and all prompts that the install process might have in order for the execution of the command to properly finish.

Why log out after being added to a group?


One has to log out of the machine after going through the process of adding oneself to a group because the effects made by the usermod command to append a user to a group. This happens because a user's security token doesn't contain the new group membership information on the use of the command, it just stores the data that it should have on the user's next authentication. This means you'll need to re-login because the system only provides the up-to-date token when the user is authenticated which is only after logging in. Basically, even though the group changes did happen, they aren't in effect until after because they technically aren't "saved" to the user data so to speak.