Linux — Interview Top Questions
Prepare these questions —mostly, these are the ones the interviewer can ask frequently.
1. What is the boot process in Linux?
2. How can you create a zero-size file in Linux?
3. What are 𝘀𝗼𝗳𝘁 𝗹𝗶𝗻𝗸𝘀 and 𝗵𝗮𝗿𝗱 𝗹𝗶𝗻𝗸𝘀 in Linux? How do you create them? What are the differences between these two types of links?
4. What is the first line typically written in a shell script? What is its meaning? What happens if this line is omitted, and how do you run the script in such a case?
5. How can you run a shell script in the background in Linux?
6. What is a 𝗰𝗿𝗼𝗻𝘁𝗮𝗯 in Linux? Explain how it works and how to configure and schedule a job using crontab.
7. How do you allow ports in Linux?
8. How do you troubleshoot a remote server that is experiencing issues?
9. What are the 𝗽𝗶𝗻𝗴, 𝘁𝗲𝗹𝗻𝗲𝘁, 𝗰𝘂𝗿𝗹, and 𝘄𝗴𝗲𝘁 commands in Linux?
10. How can you check the status of services in a Linux machine?
11. How do you kill a process in Linux?
12. What are the `𝗻𝗶𝗰𝗲` and `𝗿𝗲𝗻𝗶𝗰𝗲` commands in Linux?
13. What is an 𝗶𝗻𝗼𝗱𝗲 in Linux?
14. How do you check CPU utilization in Linux?
15. What are the differences between the `𝘁𝗼𝗽` and `𝗵𝘁𝗼𝗽` commands?
16. What is a 𝗺𝗼𝘂𝗻𝘁 in Linux, and how do you create one?
17. How do you troubleshoot live logs in Linux?
18. What is the `𝘀𝗲𝗱` command in Linux?
19. What is the `𝗮𝘄𝗸` command in Linux?
20. What are the `𝗴𝗿𝗲𝗽` and `𝗲𝗴𝗿𝗲𝗽` commands in Linux?
21. How can you list only directories in a Linux environment?
22. How do you check the processes running in Linux?
23. How do you get a Java thread dump in Linux?
24. How can you check the running ports on a Linux machine?
25. How do you declare a variable in a shell script?
26. What do `$?`, `$#`, and `$*` represent in shell scripting?
27. How do you read a command line input in a shell script?
28. What is 𝘂𝗺𝗮𝘀𝗸 in Linux?
29. How do you change file permissions in Linux?
30. How can you connect to remote servers without a password? How is this achieved?
31. How do you open a file in read-only mode in the vi editor?
32. What is the purpose of the `𝗲𝘅𝗽𝗼𝗿𝘁` command in Linux?
33. How do you send 𝗲𝗿𝗿𝗼𝗿𝗹𝗼𝗴𝘀 and 𝘀𝘁𝗱𝗼𝘂𝘁 𝗹𝗼𝗴𝘀 to different files in Linux?
34. What is the `𝗻𝗼𝗵𝘂𝗽` command in Linux?
35. What does the `𝗻𝗲𝘁𝘀𝘁𝗮𝘁` command do in Linux?
36. How do you run a script at 𝗯𝗼𝗼𝘁 𝗹𝗲𝘃𝗲𝗹 in Linux?
Hope it helps!
Thank you for reading so far! Before you go:
- 👏 Clap for the story if it helped :)
- 📰 View more content from me https://medium.com/@clouddevsecops