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

how can you say that unix operating system provides more security than other operating systems.

1 Answers  


If your linux machine shows a ~(tilde) in most filenames on your dos or windows partition,what is the mistake you have made?How do you get back the long filenames?

2 Answers  


What is a filesystem?

3 Answers  


What are setuid/setgid in relation to file permissions?

2 Answers   Cap Gemini, IBM,


What is Expansion swap?

1 Answers   KISSI,






How does the inode map to data block of a file?

3 Answers  


win 3.1 is a

0 Answers   TISL,


What do you mean by nice value?

4 Answers  


what is a profile?

1 Answers  


In Unix inter process communication take place using?

3 Answers   TCS,


What is mean by Mac os? Why it is named as like that? Which purprose it is using? Please answer me. Advance thanks.

2 Answers   Excel, GeniusPort,


what is the name os the first os and tell me the year when it was discovered

1 Answers   Qiscet,


Categories