What is difference between su and sudo? Both su and sudo elevate privileges assigned to the current user. The main difference between the two is that su requires the password of the target account, while sudo requires the password of the current user. Therefore, it is much safer to use sudo since it doesn’t include exchanging sensitive information.
What is bash Linux? Bash (Bourne Again Shell) is the free and enhanced version of the Bourne shell distributed with Linux and GNU operating systems. Bash is similar to the original, but has added features such as command-line editing.
What does $$ mean in bash? The Meaning of $$ in Bash
As mentioned above… The variable $$ in Bash contains the Process ID (PID) of the shell running your script. To show this concept we will create a very simple script that uses the grep command to print its own PID.
Is bash and shell the same? bash is a superset of sh. Shell is a command-line interface to run commands and shell scripts. Shells come in a variety of flavors, much as operating systems come in a variety of flavors. So, Shell is an interface between the user and the operating system, which helps the user to interact with the device.