Frequent Question: What Is Sign in Linux?
Contents in Short, If the Screen Shows a Dollar Sign ( $ ) or Hash ( # ) on the Left of the Blinking Cursor, You Are in a Command-Line Environment. $, #, %...
In short, if the screen shows a dollar sign ( $ ) or hash ( # ) on the left of the blinking cursor, you are in a command-line environment. $ , # , % symbols indicate the user account type you are logged in to. Dollar sign ( $ ) means you are a normal user.
What does percent sign mean in Linux?
The Answer
When the percent sign (%) is used in the pattern ${variable%substring}, it will return content of the variable with the shortest occurrence of substring deleted from the back of the variable.
What is $$ in bash?
$$ is the process ID (PID) in bash. Using $$ is a bad idea, because it will usually create a race condition, and allow your shell-script to be subverted by an attacker. See, for example, all these people who created insecure temporary files and had to issue security advisories. Instead, use mktemp .