Networking Interview Questions
Networking Interview Questions
https://youtu.be/Eg6ibIGxeGc?si=1F0WeIu5N71pnS-5
Initial Questions:
1. What is $?
○ $? is a special variable in Unix/Linux that holds the exit status of the last
command executed. If the value is 0, it indicates that the command was
successful; any other value indicates an error.
2. How do you know which port is running a service?
○ You can use commands like netstat -tuln, ss -tuln, or lsof -i to
view open ports and the services running on them. For example, netstat
-tuln displays active TCP/UDP ports and associated processes.
3. What is the difference between Unix and Linux?
○ Unix is an older operating system developed in the 1970s. It is proprietary,
and there are several versions (e.g., AIX, Solaris). Linux is an open-source
Unix-like operating system created by Linus Torvalds in 1991. It follows Unix
principles but is not derived from the original Unix code.
4. Difference between cluster and nodes?
○ A cluster is a group of interconnected computers (nodes) that work together
to perform tasks as a single system. A node is an individual computer within
the cluster that can perform computations or provide services.
5. What is TLS and SSL, and what are their differences?
○ SSL (Secure Sockets Layer) and TLS (Transport Layer Security) are
cryptographic protocols for securing communications over a computer
network. TLS is the successor to SSL and offers stronger encryption,
improved security, and is more efficient in performance. TLS replaced SSL
due to various vulnerabilities found in SSL.
6. How do you create and manage JVMs (Java Virtual Machines)?
○ You can create and manage JVMs by installing the appropriate Java
Development Kit (JDK), configuring the environment variables (like
JAVA_HOME), and running Java applications with custom settings using JVM
options (e.g., -Xms, -Xmx for memory settings). Tools like JConsole,
VisualVM, or JMX (Java Management Extensions) can be used for JVM
monitoring and management.
7. What are the networking certificate formats?
○ Common networking certificate formats include PEM (Privacy-Enhanced
Mail), DER (Distinguished Encoding Rules), PFX/P12 (Personal Information
Exchange), and CER (Certificate). These formats differ in encoding methods
and use cases (e.g., PEM is text-based while DER is binary).