AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
Expand all | Collapse all

What could be the difference between a directory and a filesystem?

  • 1.  What could be the difference between a directory and a filesystem?

    Posted Fri April 27, 2012 03:59 AM

    Originally posted by: shibhikkiran


    Hello,

    This is the question faced by me in recent interview.

    Can anyone explain me, what could be difference between a directory and a filesystem?

    My answer was,

    1. Directory can be created inside a filesystem but we can't able to create a filesystem in directory.

    2. We can mount the filesystem but we can't mount the directory.

    My interviewer is not convinced by my reply.

    Please give your valuable thoughts.

    Looking forward to have response.
    #AIX-Forum


  • 2.  Re: What could be the difference between a directory and a filesystem?

    Posted Fri May 04, 2012 07:53 AM

    Originally posted by: Tibor_B


    I am not sure of your point 2, directory might be mounted, f.e. via NFS...

    couple of differences from my head:

    filesystem is located on a piece of physical memory, has its fixed size, directory is just a file that contains information on files and sub-directories...

    Data in one filesystem do not 'compete' for disk space with data in other filesystems....

    filesystem can be unmounted and mounted to other server...
    #AIX-Forum


  • 3.  Re: What could be the difference between a directory and a filesystem?

    Posted Fri May 04, 2012 09:32 AM

    Originally posted by: orphy


    Start with this and come back if you are still not clear.

    http://lmgtfy.com/?q=what+is+a+filesystem+in+unix
    Orphy
    #AIX-Forum