What is the difference between hard link & softlink?

Answers were Sorted based on User's Feedback



What is the difference between hard link & softlink?..

Answer / martin joseph

A hard link cannot span file systems; it can only point to
another file located within its file system. The reason is
that hard links all share an inode number. Each file system
has its own set of inode numbers; therefore, a file with
inode number 3588 in the /export/home file system may not
even exist in the /var file system.
You cannot create a hard link unless the source file
already exists.

Symbolic links are used for shortcuts.Symbolic links can
point to files anywhere on the network. The file or
directory could exist in another file system, on another
disk, or on another system on the network.

Another advantage of symbolic links over hard links is that
a symbolic link can link directories or files, whereas a
hard link can link only files

Is This Answer Correct ?    35 Yes 2 No

What is the difference between hard link & softlink?..

Answer / jitendra

Answer
# 1 A hard link cannot span file systems; it can only point
to
another file located within its file system. The reason is
that hard links all share an inode number. Each file system
has its own set of inode numbers; therefore, a file with
inode number 3588 in the /export/home file system may not
even exist in the /var file system.
You cannot create a hard link unless the source file
already exists.

Symbolic links are used for shortcuts.Symbolic links can
point to files anywhere on the network. The file or
directory could exist in another file system, on another
disk, or on another system on the network.

Another advantage of symbolic links over hard links is that
a symbolic link can link directories or files, whereas a
hard link can link only files

Is This Answer Correct ?    19 Yes 5 No

Post New Answer

More Unix AllOther Interview Questions

What is paging?

2 Answers   BMC,


What is the main advantage of creating links to a file instead of copies of the file?

5 Answers   Cisco, ING,


What is the difference between internal and external commands?

13 Answers   BPL, DOEACC, Engro, Kuvempu University, NIIT, TCS,


why unix command can be divided into internal and external command

1 Answers   IBM,


What are the files in /etc directory?

6 Answers   TCS, Wipro,






What are each of the standard files and what are they normally associated with?

1 Answers   ITCO,


fork()?

2 Answers   TCS,


How do I log into a remote Unix machine(as a root/normal user)?Please specify with command user and argument.

3 Answers  


differentiate between named & unnamed pipe.

11 Answers   Cisco, IIT, ISEC,


Could you tell something about the Unix System Kernel?

3 Answers   ITCO, TCS,


If Media Server fails. What are the steps to be followed? Can anyone please reply for this question Thanks, Ganesh

0 Answers   HCL, IBM,


What is default permissions for others in a file?

5 Answers  


Categories