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?
- In which directory to place application's source code? (What shall be a destination for COPY of the source code when building a Linux-based Docker image?)
- How to edit a file if vi, vim, gedit etc...are not available?
- How to list all users on the system?
- How do you troubleshoot high CPU/memory usage?
- How do you check which process is using a port?
- grep, awk, sed, find — where do you use them?
- TCP vs UDP?
- HTTP vs HTTPS?
- DNS — how does it work?
- What happens when you enter a URL in your browser?
- What are ports 22, 80, 443 and 53 used for?
- How do you troubleshoot connectivity between two servers?
- To be continued...

No comments:
Post a Comment