Kernel is the core portion of the Operating system which gets loaded into the primary memory at the time of bootstrapping. It allocates the memory for the program, manages all the files, and gives response to the different system calls.
On the contrary, shell acts as the interpreter between naive user and kernel. It performs Command Line Interpretation that is it interprets the command typed in the prompt in a form that kernel understands. Kernel then allocates resources to the programs as represented by the commands .
How many types of files are there in any standard Unix family system?
From the Operating System aspect, Unix does not impose any internal file structure, but the differences arise when they are interpreted differently by the application software.
On this background, there are two types of files in Unix, and they are Normal or Ordinary Files and some Special Files. Normal or Ordinary files are indicated with “-“ in first position of the file permission string.
There are many special files like Directory files (indicated with “d”), Named pipes (indicated with “p”), Socket files (indicated with “s”), Symbolic link (indicated with “l”) and Device files. Device files are of two types, character device files (indicated with “c”) and block device files (indicated with “b”).
What is the difference between Soft Linking and hard Linking in Unix?
If a file “foo” is hard linked with “bar”, then “bar” points to the content of “foo”. That is if content of the “foo” gets changed, content of ”bar” also gets changed. Vice versa is also true. As ”foo” and “bar” point to the same locations in the file structure, they share common inode number.
On the other hand if “foo” is soft linked with “dar” then dar becomes a completely different file which holds the path of the “foo”. Content of “dar” is actually nothing but the content of the file, path of which is there in “dar”. Hence change in content of “foo” will obviously lead to change in content of “dar”. As “foo” and “bar” are two different files physically, their inode numbers will be different.
Now if “foo” gets deleted, still the content of “foo” could be accessed through “bar”, but “dar” will have no content because “dar” will try to show the content of “foo” which is not there at all in the file system.
Lastly, hard linking cannot pierce through current directory where as soft linking can span through entire directory structure.
#1Refrigeration is the process of MAINTAINING a lower temperature as compared to the surroundings. Be it continuous generation of work from heat or maintaining a lower temp, we have to conduct these operations...
As we know already JAVA is object oriented language. Object-oriented programming (OOP) is a programming paradigm based on the concept of "objects", which are data structures that contain data, in the form...
• Divide a line into any number of equal parts by parallel line method bisecting of line and angle.
• Construction of triangles and polygons Introduction of conic sections...
Clearing Maths is not a great deal. All you need to follow is just a small key. Take last three years question papers and start working out the sums. Do not leave the choices. work out all sums. thats...
Exam pressure is something that everyone faces atleast once in their lifetime. It is a psychological fact that generates a fear in us at the time of any exam or any other opportunity. Most of us finds...