This section includes 7 InterviewSolutions, each offering curated multiple-choice questions to sharpen your Current Affairs knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What are the various IDs in UNIX processes? |
|
Answer» There are 3 ids ASSOCIATED with the Unix process:
getppid() retrieves the Parent Process ID, getpid() retrieves the Process ID and getpgrp() retrieves the process group ID. The process ALSO has a real user ID (the UID), an EFFECTIVE user ID (the EUID), a real user group ID (the GID), and an effective user group ID (the EGID). |
|
| 2. |
What are different classes of jobs? |
|
Answer» The UNIX operating system job scheduler provides three different types of job classes
|
|
| 3. |
Explain system bootup in UNIX. |
|
Answer» It is the first THING when the system starts. It has majorly 5 phases
|
|
| 4. |
You have an IP address in your network, how will you find the hostname and vice versa? |
|
Answer» nslookup COMMAND is used to query internet domain name servers which can be used to find HOSTNAME from an IP ADDRESS and for reverse lookup also, SIMILARLY host command can also be used. |
|
| 5. |
What is the Zombie process in UNIX? How do you find the Zombie process? |
|
Answer» ZOMBIE processes are those child processes that get finished before the parent process. So after finishing up, the process structure and address space are removed and FREED back to the system but the ENTRY in the process table still exists. To be able to get the status of the child process the parent CALLS WAIT(). In the interval between the child terminating and the parent calling wait(), the child is said to be a 'zombie'. |
|
| 6. |
What is the difference between ps -ef and ps -auxwww? |
|
Answer» ps -EF will not list the processes with a very long COMMAND line while ps -auxwww will list those processes as WELL. This SOMETIMES helps in debugging as we do not always want to list all the processes but if we are not getting any IDEA we should switch to the ps -auxwww command. |
|
| 7. |
Can you explain a little bit about command substitution? |
|
Answer» Command substitution is a method by which the command is substituted by its output. We can use this to assign the output to a VARIABLE. $ DATE=`date`$ echo "Date is $DATE"Date is THU May 27 03:59:57 IST 2021 |
|
| 8. |
Explain mount and unmount commands. |
|
Answer» Mount: The mount command mounts a STORAGE device or file SYSTEM onto an existing DIRECTORY making it accessible to users. UNMOUNT: This unmount command detaches the mounted file system safely. It also informs the system of any pending read and write operations. |
|
| 9. |
Name the various commands that are used for the user information in UNIX. |
|
Answer» The various COMMANDS that are USED for displaying the user information in Unix are: |
|
| 10. |
Explain the kill() system call and its return values? |
|
Answer» kill() system call sends signals to any process which further takes suitable action ACCORDING to the signal. It takes two arguments, first is PID, to which you WANT to send a signal and the signal you want to send is second. This method returns the following return values:
|
|
| 11. |
Explain Virtual memory |
|
Answer» Virtual Memory is a PROCESS or a system to ADDRESS more memory than physically exists. The model CONSISTS of a set of memory pages, usually 4 KB each. There is a TRANSLATION layer between virtual memory addresses and physical memory addresses. This translation layer is part of the kernel and is usually written in machine LANGUAGE(Assembly) to achieve optimal performance when translating and mapping addresses. Each time a user process accesses memory, the kernel uses the address translation layer to map the virtual memory address into a physical memory address. Virtual Addressing makes it possible to address larger amounts of memory than physically exist. |
|