Excel
Database
SAP BASIS
Popular Posts
Linux Interview Questions Answers 200 PART 2
Indian Well Wisher 11:22:00 AMLinux Interview Questions Answers 200 PART 2
This advanced Linux interview questions and answers guide is a continuation of a comprehensive 200+ question series designed for system administrators, DevOps engineers, and IT professionals. It focuses on real-world scenarios, troubleshooting techniques, performance monitoring tools, and advanced Linux concepts such as kernel management, networking, and system optimization. Ideal for experienced candidates preparing for technical interviews, this resource provides practical insights and in-depth explanations to help you master Linux administration and confidently handle complex interview questions in modern IT environments.
51. How do you display all open network connections?
Answer: Use the netstat command:
netstat -tuln
52. What is the ifconfig command used for?
Answer: ifconfig is used to configure network interfaces, assign IP addresses, and manage network connections. However, ip is recommended for newer systems.
53. How do you configure a network interface using the ip command?
Answer: Use the ip addr command:
ip addr add 192.168.1.100/24 dev eth0 ip
link set eth0 up
54. What is the ping command used for?
Answer: ping is used to check the network connectivity between two nodes by sending ICMP echo requests and measuring the response time.
55. How do you check DNS resolution for a domain?
Answer: Use the dig or nslookup command:
dig example.com
or
nslookup example.com
56. How do you add a new route in the routing table?
Answer: Use the ip route add command:
sudo ip route add 192.168.2.0/24 via 192.168.1.1
57. How do you display the routing table?
Answer: Use the ip route show command:
ip route show
58. What is the iptables command used for?
Answer: iptables is used to set up, maintain, and inspect the tables of IP packet filter rules in the Linux kernel.
59. How do you list the current iptables rules?
Answer: Use the iptables -L command:
sudo iptables -L
60. How do you allow incoming SSH connections on iptables?
Answer: Use the iptables -A command:
sudo iptables -A INPUT -p tcp --dport 22 -j ACCEPT
61. How do you save iptables rules?
Answer: Use the iptables-save command:
sudo iptables-save > /etc/iptables/rules.v4
62. What is the tcpdump command used for?
Answer: tcpdump is a packet analyzer that captures and displays the network traffic passing through a network interface.
63. How do you capture packets on a specific interface using tcpdump?
Answer: Use the tcpdump -i command:
sudo tcpdump -i eth0
64. What is the ss command used for?
Answer: ss is used to dump socket statistics and display information about network connections.
65. How do you display listening ports using ss?
Answer: Use the ss -tuln command:
ss -tuln
66. What is the hostname command used for?
Answer: hostname displays or sets the system's hostname.
Linux Interview Questions Answers 200 PART 2
67. How do you change the system's hostname?
Answer: Use the hostnamectl command:
sudo hostnamectl set-hostname newhostname
68. What is a shell in Linux?
Answer: A shell is a command-line interpreter that provides a user interface for accessing the operating system's services.
69. What is the difference between bash and sh?
Answer: bash (Bourne Again Shell) is an enhanced version of sh (Bourne Shell) with additional features like command history, tab completion, and improved scripting capabilities.
70. How do you create a shell script?
Answer: Create a text file with the .sh extension and add shell commands to it. For example:
#!/bin/bash
echo "Hello, World!"
71. How do you make a shell script executable?
Answer: Use the chmod command:
chmod +x script.sh
72. How do you run a shell script?
Answer: Use the ./syntax:
./script.sh
73. What is the purpose of the shebang (#!) in a script?
Answer: The shebang specifies the interpreter to be used to execute the script. For example,
#!/bin/bash tells the system to use bash to run the script.
74. How do you define a variable in a shell script?
Answer: Use the = operator without spaces:
variable_name="value"
Visit for latest Job Vacancies and News indianinQ8.com
Visit for More Forever Living Products - Forever Living Kuwait at https://foreverlivingkuwait.blogspot.com/
75. How do you access a variable in a shell script?
Answer: Use the $ symbol:
echo $variable_name
76. How do you read user input in a shell script?
Answer: Use the read command:
read variable_name
77. How do you use an ifstatement in a shell script?
Answer: Use the if keyword followed by the condition and then keyword. For example:
if [ condition ]; then
commands
fi
78. How do you use a for loop in a shell script?
Answer: Use the for keyword followed by the loop variable and in keyword. For example:
for i in 1 2 3; do echo
$i
done
79. How do you use a while loop in a shell script?
Answer: Use the while keyword followed by the condition. For example:
while [ condition ]; do
commands
done
80. How do you pass arguments to a shell script?
Answer: Use positional parameters $1, $2, etc. For example:
./script.sh arg1 arg2
81. How do you display the current date and time?
Answer: Use the date command:
Date
Kuwait bus routes and numbers, bus route kuwait CityBus, KPTC, KGL Mowsalat. find Kuwait’s public transport Muscat خط الحافلات الكويت.
82. How do you display a calendar for the current month?
Answer: Use the cal command:
cal
83. How do you display the current user's username?
Answer: Use the whoami command:
whoami
84. How do you display a list of users currently logged in?
Answer: Use the who command:
who
85. How do you display information about the system?
Answer: Use the uname command. For detailed information:
uname -a
86. What is the uptime command used for?
Answer: uptime displays how long the system has been running, the number of users, and the load average.
87. How do you display the system's load average?
Answer: Use the uptime or top command.
88. What is the dmesg command used for?
Answer: dmesg displays the kernel ring buffer messages, useful for debugging hardware and driver issues.
89. How do you clear the terminal screen?
Answer: Use the clear command:
Clear
Linux Interview Questions Answers 200 PART 2 https://how-to-install-it.blogspot.com/2026/04/linux-interview-questions-answers-200_20.html
|
Category |
Key Points |
|
Content Type |
Continuation/Part 2 of 200+ Linux interview questions
and answers |
|
Focus Level |
More advanced and scenario-based questions compared
to Part 1 |
|
Target Audience |
Experienced professionals, system admins, DevOps engineers |
|
Core Topics Covered |
Troubleshooting, networking, performance tuning, system
internals |
|
Advanced Commands |
Covers tools like top, vmstat, iostat, sar for monitoring |
|
System Concepts |
Boot process, kernel updates, cron jobs, chroot
environments |
|
Troubleshooting Skills |
Focus on real-world issues like high CPU, memory leaks,
disk usage |
|
Networking |
Questions on IP, DNS, interfaces, and connectivity
debugging |
|
Practical Approach |
Scenario-based Q&A helps in real interview
problem-solving |
|
Structure |
Sequential continuation (mid → advanced level questions) |
|
SEO Strength |
Targets long-tail keywords like “advanced Linux
interview questions” |
Linux Interview Questions Answers 200 PART 1 https://how-to-install-it.blogspot.com/2026/04/linux-interview-questions-answers-200.html
90. How do you schedule a one-time job using at?
Answer: Use the at command followed by the time. For example:
echo "command" | at 10:00
91. How do you list scheduled at jobs?
Answer: Use the atq command:
atq
92. How do you remove a scheduled at job?
Answer: Use the atrm command followed by the job number:
atrm job_number
93. How do you schedule a recurring job using cron?
Answer: Edit the crontab file using crontab -e and add the job with the schedule. For example:
0 5 * * * /path/to/script.sh
94. How do you list all cron jobs for the current user?
Answer: Use the crontab -l command:
crontab -l
95. How do you remove all cron jobs for the current user?
Answer: Use the crontab -r command:
crontab -r
What is SAP Landscape?
96. How do you view the system's scheduled cron jobs?
Answer: View the /etc/crontab file and files in /etc/cron.d/.
97. How do you send a message to all logged-in users?
Answer: Use the wall command:
echo "message" | wall
98. How do you display the amount of free and used memory in the system?
Answer: Use the free command:
free -h
Linux Interview Questions Answers 200 PART 3 https://how-to-install-it.blogspot.com/2026/04/linux-interview-questions-answers-200_32.html
99. How do you check for available software updates?
Answer: For Debian-based systems, use:
sudo apt update
For Red Hat-based systems, use:
sudo yum check-update
100. How do you reboot the system?
Answer: Use the reboot command:
sudo reboot
linux interview questions and answers, advanced linux interview questions, linux admin interview questions, linux troubleshooting interview questions, devops linux interview preparation
Linux Interview Questions Answers 200 PART 2
Related posts
No comments: