Skip to content

Linux Shell Basics & Environment – Full Quiz

Back to Quiz Home


This quiz contains 15 questions focused on shell variables, environment variables, PATH configuration, and aliases. These concepts are heavily used by DevOps engineers in daily operations.


#

Which variable is accessible only within the current shell session?

#

Which command creates an environment variable?

#

Which command displays all environment variables?

#

Which command displays a specific environment variable?

#

Which environment variable defines where Linux searches for commands?

#

Which command displays the current PATH?

#

Why can most Linux commands be executed from any directory?

#

Which command gives execute permission to a script?

#

Why does ./script.sh work but script.sh fails?

#

Which file is executed when a new terminal session starts?

#

Which file is used to persist aliases and environment variables?

#

Which command creates a shortcut command?

#

Which command removes an alias?

#

Which file interpreter is defined by the shebang?

#

Which command is the default shell for most Linux distributions?

#

Which operator redirects output and overwrites the existing file?

#

Which operator appends output to the end of a file without deleting its content?

#

Which operator is used to pass the output of one command as input to another?

#

Which special variable holds the exit status of the last executed command?

Quiz Progress

0 / 0 questions answered (0%)

0 correct


📚 Study Guides


📬 Weekly DevOps, Cloud & Gen AI quizzes & guides