Top 10 Scenario-Based Linux Interview Questions and Answers with Practical – Real Time



Top 10 Scenario-Based Linux Interview Questions and Answers with Practical – Real Time

Top 10 Scenario-Based Linux Interview Questions and Answers with Practical - Real Time

In this video, I am going to explain some important scenario-based interview questions and answers with practical…

Scenario-Based Linux Interview Question for Experienced…
Q-1: A user is not able to ssh to a remote server, what could be the possible cause?

Q-2: User root has created a file /tmp/abc with 700 permission, you want that your lokendra should have full access to file, how will do this?

Q-3: How will you change the default login shell for all upcoming users on Linux?

Q-4: After creating password less ssh access, whenever I try to login to a server it asks me for the password, While I have verified that my public key is placed on a remote server?

Q-5: How to disable the root account?

Q-6: I have a server where httpd service is running, I want that httpd should be running on cpu core no 2 only.

Q-7: After reboot, I can see a time difference in /var/log/message and os time.

Q-8: I want to restart a service only if the service is already running. If service is in a stopped state, the command should do nothing.
Systemctl try-restart httpd.service

Q-9: What is max filename length allowed in Linux? 255

Q-10: What is drop cache in Linux and how do you clear it?

Please watch the following video for another interview question

https://www.youtube.com/watch?v=-v5ieX4AYJU

In this video, I am going to explain some real-time interview questions and answers for 2-4 years of experience.
Linux Interview Questions and Answers
Q- How will you change the default user id value in Linux?
Q- root# rm -rf /tmp/test gives error operation not permitted. Reason?
Q- /etc/hosts (Which RPM is responsible for creating this file).
Q- What is the difference between RPM and YUM?
Q- What is the difference between Hard and Soft Link?
Q- What is a sticky bit?
Q- How will you check open ports on Linux Server?
Q- How will you check open ports on remote servers (without login)
Q- Your site is throwing 500 error, how will you start troubleshooting?
Q- How will you start troubleshooting if your site is down?
Q- How will you create space on disk if it is showing 100% used?
Q- What is a package of sar command and what does it do?

Comments are closed.