Thursday 11 April 2024

Linux Interview Questions

Here are some Linux Interview questions. Good luck!

  • How to check if any application is listening on port 80?
  • How to list all the environment variables?
  • How to list all the variables, including all local variables?
  • How to reference a variable?
  • How to print the value of a particular variable?
  • How to set an environment variable? How to export it to the global environment (available to other processes). How should variable be enclosed if it contains spaces?
  • How to set a local variable?
  • Where are local variables available?
  • How to unset a local variable?

No comments: