Durchsuchen nach
Schlagwort: Linux

Bash Scripting on Linux: How to query your Login Name?

Bash Scripting on Linux: How to query your Login Name?

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…

Weiterlesen Weiterlesen

Linux Bash Script: How to add own text to variable

Linux Bash Script: How to add own text to variable

You have created a little code in a bash script, and you want to add your own text to a variable. I show you it, in this Reel from my Facebook Fan page / Sie haben einen kleinen Code in einem Bash-Skript erstellt und möchten Ihrer Variablen einen eigenen Text hinzufügen. Ich zeige Ihnen, wie das geht, in diesem Reel von meiner Facebook-Fanseite.

Linux Bash: Shutdown script

Linux Bash: Shutdown script

In one of my previous blog entry I have presented a start script, but this was not my favourite. I have changed into a shutdown script because I think it is more useful. After a reboot or shutdown, you have en empty free home directory from PDF files. I directly save the PDF files into the home directory $Home. The new thing is the system will ask you whether you want to reboot or shutdown the system. If you don’t…

Weiterlesen Weiterlesen