Categories: SQL Complex Queries

Top 20 Unix Production Support Interview questions with answers

In my previous article I have given the top 20 interview Questions and answers for technical support. In this article I would like to focus on Unix Interview questions which i already given for application support. This article will focus on 20 Unix Production support Interview questions with answers and examples. These interview questions are important for the production support engineer who are working on supporting application.You can also refer Unix application support interview questions.You can also see the youtube video clicking here.

Unix Production Support Interview Questions and answers :

Question 1: What is Unix? (100% asked Unix Production Support Interview Questions )

Answer :

Unix is a powerful and versatile multi-user, multitasking operating system developed in the late 1960s. It provides a robust command-line interface and forms the basis for many modern operating systems.

Question 2: Explain the difference between Unix and Linux.

Answer :

Unix is a family of operating systems, including commercial ones, whereas Linux is an open-source Unix-like operating system. An example of Unix is AIX, while Linux includes distributions like Ubuntu and CentOS.

Question 3: What is a shell in Unix?

Answer :

A shell is a command-line interpreter that allows users to interact with Unix. An example of a Unix shell is the Bourne Shell (`/bin/sh`) or the Bash Shell (`/bin/bash`).

Question 4: How do you list files in a directory using the command line?(100% asked Unix Production Support Interview Questions )

Answer :

You can use the `ls` command to list files in a directory. For example, to list files in the current directory:

“`bash
ls
“`

Question 5: What is the purpose of the `chmod` command?(100% asked Unix Production Support Interview Questions )

Answer :

The `chmod` command is used to change file permissions in Unix. For instance, to make a file executable, you can use:

“`bash
chmod +x filename
“`

Question 6: Explain the difference between a soft link and a hard link.

Answer:

A soft link (symbolic link) is a reference to a file by its path, while a hard link is another reference to the same file data on disk. Example:

“`bash
# Creating a soft link
ln -s originalfile softlink

# Creating a hard link
ln originalfile hardlink
“`

Question 7: What is a daemon in Unix?

Answer :

A daemon is a background process that runs without user interaction. An example is the `httpd` daemon for serving web pages.

Question 8: How do you check the disk usage on a Unix system?(100% asked Unix Production Support Interview Questions )

Answer :

Use the `df` command to check disk usage. For example, to display disk usage for all mounted filesystems:

“`bash
df -h
“`

Question 9: Explain the significance of the `/etc/passwd` file.

Answer:

`/etc/passwd` stores user account information, including usernames and encrypted passwords. Here’s an example entry:

“`bash
john:x:1001:1001:John Doe:/home/john:/bin/bash
“`

Question 10: What is the purpose of the `grep` command?

Answer:

The `grep` command is used to search for text patterns in files. For instance, to find the word “error” in a log file:

“`bash
grep “error” logfile.log
“`

Question 11: How do you kill a running process in Unix?

Answer :

To terminate a process in Unix, you can use the `kill` command followed by the process ID (PID). For example, to kill a process with PID 1234:

“`bash
kill 1234
“`

Question 12: What is the `cron` job scheduler in Unix?

Answer :

`cron` is a utility in Unix for scheduling tasks to run at specified times. For instance, to schedule a script to run daily at midnight:

“`bash
0 0 * * * /path/to/script.sh
“`

Question 13: Explain the difference between a process and a thread.

Answer :

A process is an independent program with its own memory space, while a thread is a smaller unit of a process that shares its memory space. Processes are isolated from each other, while threads within the same process share resources. For example, a web server process can have multiple threads handling different client requests concurrently.

Question 14: How do you redirect the output of a command to a file?

Answer :

You can redirect the output of a command to a file using the `>` operator. For example, to save the output of a command to a file called `output.txt`:

“`bash
command > output.txt
“`

Download PDF For UNIX PRODUCTION SUPPORT INTERVIEW QUESTIONS

Question 15: What is the purpose of the `tar` command?

Answer :

The `tar` command is used for archiving and compressing files in Unix. For instance, to create a compressed tarball of a directory:

“`bash
tar -czvf archive.tar.gz directory/
“`

Question 16: What does the `ps` command do?

Answer :

The `ps` command is used to list currently running processes. For example, to list all processes running on the system:

“`bash
ps aux
“`

Question 17: How do you set environment variables in Unix?

Answer :

You can set environment variables in Unix using the `export` command. For example, to set the `JAVA_HOME` environment variable:

“`bash
export JAVA_HOME=/path/to/java
“`

Question 18: What is the `ssh` command used for?

Answer :

The `ssh` command is used for secure remote login and execution of commands on remote machines. For example, to connect to a remote server:

“`bash
ssh username@remote_server
“`

Question 19:Explain the purpose of the `top` command.

Answer :

The `top` command provides real-time information about system processes, memory usage, and CPU usage. It’s often used to monitor system performance and identify resource-intensive processes.

Question 20: How do you check for the existence of a file in a shell script?

Answer :

In a shell script, you can check for the existence of a file using the `-e` flag with the `test` command or the `-f` flag for regular files. For example, to check if a file named `myfile.txt` exists:

“`bash
if [ -e myfile.txt ]; then
    echo “File exists.”
else
    echo “File does not exist.”
fi
“`

These are all most asked Unix Production Support Interview Questions with answers. If you lke this article or if you have any issues with same kindly comment in comments section.

Amit S

Oracle Consultant with vast experience in Oracle BI and PL/SQL Development. Amiet is the admin head of this website who contributes by preparing tutorials and articles related to database technologies. He is responsible to manage the content and front-end of the website.

View Comments

Share
Published by
Amit S

Recent Posts

What is Root Cause Analysis (RCA) With real examples

In my previous article I have given details about application support engineer day to day…

4 weeks ago

Application Support Engineer Day to day responsibilities

In my previous articles I have given the roles and responsibilities of L1,L2 and L3…

4 weeks ago

What is mean by SLA ( Service Level Agreement) with Examples?

In my previous articles i have given the hierarchy of production support in real company…

1 month ago

What is Production support Hierarchy in organization?

In this article i would like to provide information about production support organization structure or…

1 month ago

What are roles and responsibilities for L3 Support Engineer?

In my previous article I have given roles for L1 and L2 support engineer with…

1 month ago

What are roles and responsibilities of L2 Engineer?

I have started this new series of how to become application support engineer. This article…

1 month ago