Linux Interview Questions

Linux Interview Questions – Part 6

1. What is Exim Service? What is the purpose of this Service?

Answer :Exim is an Open Source Mail Transfer Agent (MTA) which deals with routing, receiving and delivering of Electronic Mail. Exim service serves to be a great replacement of sendmail service which comes bundled with most of the distro.

2. What is NIS server? What is the purpose of NIS Server?

Answer :The NIS server, serves the purpose of dealing with Network Information Service which in-turn facilitates to login to other Systems with same log-in credentials. NIS is a directory service protocol which functions in Client-Server Model.

3. What will you prefer for a reverse proxy in Linux?

Answer :Reverse Proxy refers to the type of proxy that retrieves resources on account of client from server(s). The solution of ‘Reverse Proxy’ in Linux is squid as well as Apache reverse Proxy. However ‘squid’ is more preferred than ‘Apache reverse Proxy’ because of its simplicity and straight forward nature.

4. You are getting following codes (2xx, 3xx, 4xx, 5xx) in Apache, at some point of time. What does this means?

Answer :In Apache each error code points towards a specific area of problem.

2xx : Request of connection Successful

3xx: Redirection

4xx: Client Error

5xx: Server Error

5. You are asked to stop Apache Service through its control Script. What will you do?

Answer :The Apache service is controlled using a script called apachectl. In order to stop apache using its control script we need to run.

6. How is ‘apachectl restart’ different from ‘apachect1 graceful’

Answer :The ‘apachect1 restart’ when executed will force Apache to restart immediately, before the task complete whereas ‘apachectl graceful’ will wait for the current task to be finished before restarting the service. Not to mention ‘apachectl graceful’ is more safe to execute but the execution time for ‘apachect1 restart’ is less as compared to ‘apachectl graceful’.

7. How will you configure the nfs mounts to export it, from your local machine?

Answer :The /etc/export allows the creation of nfs exports on local machine and make it available to the whole world.

8. You are supposed to create a new Apache VirtualHost configuration for the host www.Tecmint.com that is available at /home/Tecmint/public_html/ and maintains log at /var/log/httpd/ by default.

Answer :You need to create a Apache virtual host container in main apache configuration file located at ‘/etc/httpd/conf/httpd.conf’. The following is the virtual container for host www.tecmint.com.