Skip to content

Linux Shell, Environment Variables, PATH, Alias & Package Management – Full Quiz

Back to Shell & Environment Commands
Back to Linux Commands
Back to Quiz Home


This quiz contains 20 questions focused on shell variables, environment variables, PATH configuration, aliases, and Linux package management. 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 package manager is used in RHEL / CentOS / Oracle Linux?

#

Which package manager is used in Ubuntu / Debian?

#

Which package manager is used in Alpine Linux?

#

Which command installs a package using yum?

#

Which command removes a package using apt?

#

Which command checks if a package command exists?

#

Which file interpreter is defined by the shebang?

Quiz Progress

0 / 0 questions answered (0%)

0 correct


📩 Get weekly DevOps quizzes & guides

📬 Weekly DevOps, Cloud & Gen AI quizzes & guides