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 a Map?

0 Answers  


How do you log in to a remote Unix box?

2 Answers  


How do you list the files in an UNIX directory while also showing hidden files?

4 Answers  


How will you run the script in UNIX?

5 Answers   BMC,


very first process created by kernell?

4 Answers   TCS,






What are permissions in UNIX?

5 Answers   BMC, University,


Name key files or directories on a Windows system that should always be backed up?

2 Answers  


Give the command to display space usage on the UNIX file system.

6 Answers  


How to give root privileges without using SU/sudor ?

1 Answers  


How to put a job in background & bring it to foreground?

3 Answers  


Why do inode number start from 1 and not 0 ?

3 Answers  


What is an inode?

8 Answers  


Categories