shell variable expansion quizes
What is the variable name who contains the previous working directory path?
-
OLDDIR
-
OLDPWD
-
PREVPWD
-
PREVDIR
Which command should I use to display the exit code of the previous command?
-
echo $?
-
echo ?
-
echo $EXITCODE
-
echo $CODE
Which command should I use to display a variable?
-
export $MYVAR
-
ls $MYVAR
-
cd $MYVAR
-
echo $MYVAR
Which command should I use to define a new command push for pushing in Github?
Example:
$ push
Everything up-to-date
$
-
alias push=git push
-
alias push="git push"
-
export push="git push"
-
export push=git push