Entries tagged as Unix

Root file system

On July 15, 2009 / By admin / In Unix / No Comments
Describe about the root file system. The root file system has to be present for the system to execute /bin, /dev, and /etc are always kept on the root system because when the system starts only files in the root system are accessible and some files such as /bin/sh are needed to run at all. During Read More...

Easiest way to store variables

On July 15, 2009 / By admin / In Unix / No Comments
What is the easiest way to store variables? Explain. The easiest way to store the values of the variables is in a 26-element array; the single-letter variable name can be used to index the array. But if the grammar is to process both variable names and values in the same stack, yacc has to be told that Read More...

Fork

On July 15, 2009 / By admin / In Unix / No Comments
Explain about fork. Splitting is done by a system call named fork. Proc_id = fork (); splits the program into two copies, both of which continue to run. The only difference between the two is the value returned by fork, the process-id. Two copies of the program are made by the fork. In the child, the Read More...
Tags:

Process of “spname”

On July 15, 2009 / By admin / In Unix / No Comments
Describe the process of “spname”. The operation of spname is straightforward enough, although there are a lot of boundary conditions to get right. Suppose the file name is /d1/d2/f. The basic ideas is to peel off the first component (/), then search that directory for a name close to the nest component (dl), then search that Read More...