InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
How to stop an infinite loop in Unix? |
|
Answer» To STOP an infinite loop, kill the PROCESS USING the ‘kill PID’ command. Example – $ kill -9 24566 |
|
| 3. |
What is Unix orphan process? |
|
Answer» A process, whose parent process terminates, FINISHES or crashes and doesn’t EXIST anymore is called orphan process. They are adopted by the init SYSTEM process. |
|
| 4. |
What is Hardlink and Softlink in Unix? |
|||||||||
Answer»
|
||||||||||
| 5. |
How to check logs in Unix? |
|
Answer» You can CHECK LOGS in the FILE SYSLOG LOCATED in /etc/syslog.conf |
|
| 6. |
What command is used to switching between users in Unix? |
|
Answer» Use the ‘su’ COMMAND to switch between USERS in Unix. Syntax – su [options] [USERNAME] |
|
| 8. |
What are pipes and filters in Unix? |
Answer»
|
|
| 9. |
What are system variables in Unix? |
|
Answer» Some system variables SET in Unix by default are HOME, USER, HOST, DISPLAY, and PATH. These can be environment variables or local variables ENABLED by the shell. |
|
| 10. |
What is the difference between an absolute path and a relative path in Unix? |
|||||||||
Answer»
|
||||||||||
| 11. |
What are a shell in Unix and its types? |
|
Answer» SHELL is a program that gives us an interface between the Unix OS kernel and user. By this interfacing, the user can execute utilities and applications USING the shell. Each user gets a unique shell when he logs in or opens a console. The DIFFERENT shells are Bourne shell (sh), C shell (csh), the Korn shell (ksh), GNU Bourne-Again Shell (bash). |
|
| 12. |
How do you kill a process in Unix? |
|
Answer» Use the command kill ALONG with the process id (PID) to kill a process. Example – kill 12323 If this does not destroy the process, ADD the signal number for a kill to kill the process. Unix cannot IGNORE the signal number. Example – kill -9 12323 Continue reading Unix interview questions to know how you can stop an infinite loop USING the same command |
|
| 13. |
How to find out what processes are running in the background in Unix? |
|
Answer» Type the command jobs to SEE the processes RUNNING in the background. ExampleExample – $ jobs give the output as – where 134 is the job number. |
|
| 14. |
What is the command to compare two files in UNIX? |
| Answer» | |
| 15. |
How to compare two text files in UNIX? |
| Answer» | |
| 16. |
What are different types of files in UNIX? |
|
Answer» The different types of UNIX files are –
|
|
| 17. |
What are the essential features of the Unix operating system? |
Answer»
Continue reading our Unix interview questions list to know more about each of these features. |
|
| 18. |
How is Unix different from Linux? |
||||||||||||||||||
|
Answer» Linux can be said as a clone of UNIX with the following differences –
|
|||||||||||||||||||
| 19. |
How to install Unix on Windows 10? |
|
Answer» Unix can be installed on Windows 10 USING VirtualBox, an open source virtualization tool.
Alternatively, you can install Unix in dual boot. |
|
| 20. |
What is the role of the kernel in Unix? |
|
Answer» The kernel is the CENTRAL control of Unix. Kernel is the first part to be loaded when the OS LOADS and remains THROUGHOUT the session. It executes processes, manages MEMORY and handles INTERRUPTS and system calls. It provides drivers for controlling the hardware. |
|
| 21. |
What is a filter in Unix? Give an example. |
|
Answer» The filter is a program that gets its data from the input STREAM and prints the RESULTS to the output stream. Examples – grep, sort, TAIL, head, cut, etc.… |
|
| 22. |
What is Unix and why is it important? |
|
Answer» Unix is an operating system that supports multitasking and multi-user capabilities. Unix provides a simple and user-friendly interface for users. It is the FIRST OS to be WRITTEN in high-level (C) programming language. Unix is important:-
|
|
| 23. |
17. What are the common directory management commands in Unix? |
| Answer» | |
| 24. |
What are the file permissions and access modes in Unix? |
|
Answer» There are THREE TYPES of permissions – owner, group and other (public), all of which can be listed using the command ls -l. Each USER can have one or more of the following access – read (r), write (w), execute (X). Example, -rwxr-xr-- represent the file permissions for owner, members and everyone else as –
|
|