Script to shut down the Linux PC – new version
I have created a Bash script in order to shut down the pc. You can integrate this script into a menu in the bash. An example you can see here in my blog entry. . The script
I have created a Bash script in order to shut down the pc. You can integrate this script into a menu in the bash. An example you can see here in my blog entry. . The script
🐧️ Linux Bash: ❓️ How to use variables in the Bash? ❓️ I use here the following Bash internal variables into a script. ➡️ $LOGNAME = the name from /etc/passwd ➡️ $XDG_SESSION_TYPE = What kind of session I use: X11 or Wayland From Facebook: OpenSource Traveler
In Bash, you have two variables, $USER and $LOGNAME. $LOGNAME $LOGNAME provides the primary login name of the user. This name is typically stored in the /etc/passwd file and is read by the login program during the initial session setup. It is an environment variable. $USER $USER provides the name of the current user. It is often set by the shell itself or the login manager. It is an environment variable. What is an environment variable? An environment variable is…