Hard & Soft links


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Hard & Soft links

  1. #1
    Debkumar Guest

    Hard & Soft links


    What are Hard & Soft links?
    What is the max file size that u can have in a directory?

    Thanks in advance
    Debkumar

    Share on Google+

  2. #2
    Chris Biltcliffe Guest

    Re: Hard & Soft links

    A hard link is basically the same file, but with a different filename,
    possibly in a different directory. It points to the exact same blocks
    on the drive, so it doesn't take up any more space. It's not a copy.
    It's literally, two filename pointers that point to the same data on the
    disk. It's not a perfect explanation, because I don't know the
    specifics of the linux filesystem, but it's pretty close.

    A soft link is basically like a .lnk file in Windows. It takes up
    space, but only as many bytes as the pathname of the file it points to.
    Which is basically what it contains.

    The max filesize in a directory depends on the filesystem. I think ext2
    maxes out at 4GB files, but supposedly there's a patch available that
    will give you several hundred terabyte filesizes. Don't know how it
    works, though.
    Reiser, ext3, or any of the other filesystems that Linux supports, I'm
    not sure.

    Chris


    Debkumar wrote:
    >
    > What are Hard & Soft links?
    > What is the max file size that u can have in a directory?
    >
    > Thanks in advance
    > Debkumar

    Share on Google+

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center