Quantcast
Channel: Unix Scripting – wikiconsole
Viewing all articles
Browse latest Browse all 10

Unix Interview Questions and Answers – Part 2

$
0
0

Explain kill() and its possible return values.

What does the command “ $who | sort –logfile > newfile” do?

What are shell variables?

Shell variables are special variables, a name-value pair created and maintained by the shell.
Example: PATH, HOME, MAIL and TERM

How many prompts are available in a UNIX system?

Two prompts, PS1 (Primary Prompt), PS2 (Secondary Prompt).

Is it possible to create new a file system in UNIX?

Use ‘su’ command. The system asks for password and when valid entry is made the user gains super user (admin) privileges.

How the Kernel handles the copy on write bit of a page, when the bit is set?

Difference between the fork() and vfork() system call?

How the Kernel handles the fork() system call in traditional Unix and in the System V Unix, while swapping?

Kernel in traditional Unix, makes the duplicate copy of the parent’s address space and attaches it to the child’s process, while swapping. Kernel in System V Unix, manipulates the region tables, page table, and pfdata table entries, by incrementing the reference count of the region table of shared regions.

What are the requirements for a swapper to work?


Viewing all articles
Browse latest Browse all 10

Trending Articles