Complete the code to set a local variable named name with the value John.
name=[1]In bash, to assign a string value without spaces or special characters, you can simply write name=John. Quotes are optional here.
Complete the code to export a variable PATH with the value /usr/bin so it becomes an environment variable.
export PATH=[1]When exporting variables with paths or strings, it's good practice to use quotes to avoid issues with special characters or spaces.
Fix the error in the code to correctly print the value of the environment variable HOME.
echo [1]env HOME which is incorrect syntaxTo print the value of an environment variable in bash, prefix it with $. So echo $HOME prints the home directory.
Fill both blanks to create a local variable var with value 5 and export it as an environment variable.
var=[1] [2] var
set or declare instead of exportFirst assign the value 5 to var. Then use export var to make it an environment variable.
Fill all three blanks to create a local variable count with value 10, export it, and then print its value.
count=[1] [2] count [3] $count
print instead of echoAssign 10 to count, export it to make it an environment variable, then print its value using echo $count.