Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


the difference between a soft link and a hard link?

Answers were Sorted based on User's Feedback



the difference between a soft link and a hard link?..

Answer / rajhshekhar aletty

using hard link, we can't create links for directories. the
link can be created within the same File System, the link
can't span into an other File System.

using soft (symbol) link, we can create links for
directories moreover that link can span into an other File
System.

Is This Answer Correct ?    8 Yes 0 No

the difference between a soft link and a hard link?..

Answer / rajan.v.r

in hardlink the pid of the two files are same. we cannot
create the link b/w two directories and files are in two
different system directory. but in softlink the pids are
different and we cant two link directories

Is This Answer Correct ?    2 Yes 0 No

the difference between a soft link and a hard link?..

Answer / tam

Softlink can be created across the file system.


Hardlink can be created within the file system.

Is This Answer Correct ?    1 Yes 0 No

the difference between a soft link and a hard link?..

Answer / linuxdemon

soft link is like shortcut.so if you delete the softlink
file, the original file wont get deleted.

Hard link is like real copy of the file.so if you delete the
hardlink file, the original file will be deleted.

ln filename hardlinkfilename
ln -s filename softlinkfilename

Is This Answer Correct ?    6 Yes 6 No

the difference between a soft link and a hard link?..

Answer / upendar

Soft Link: When we create a soft link, the link is created and stored in same address where the file is stored. The disadvantage of this type of link is if we delete the file the link becomes broken link and our data is lost.

Ex: ln -s data.text slink.text
If we delete data.text, slink.text link becomes broken link and our data lost.

Hard Link: When we create a hard link, the link is created and
stored in different address. But if we delete the file , the file is deleted and the link remain active so we won't loss the data.

Ex: ln data.text hlink.text
If we delete the file data.text, our data would be accessible through the hlink.text.

Is This Answer Correct ?    0 Yes 0 No

the difference between a soft link and a hard link?..

Answer / srinivasan

Soft Link:
1. It can be created across file system
2. Different inode number than original file.
3. On deleting original file soft link cannot be accessed.
4. Can be created on a file or directory.
5. Source file need not exist for soft link creation.
6. Need extra memory to store data of original file.
7. Access to the file is slower due to overhead to access
file.

Hard Link:
1. Only within file system.
2. Same inode number as original file.
3. It can still be accessed.
4. Only on files.
5. Source file should exist.
6. Not required.
7. Faster than soft link.

Thanks,
Srini

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix Commands Interview Questions

what is the use of the hidden files?

3 Answers  


Which command is used to find whether the system is 32 bit or 64 bit?

0 Answers  


What is the command to check ports active in UNIX?

4 Answers   Accenture, IBM,


what is the difference between pipe(|) and tee command..

3 Answers   Cap Gemini, Rolta,


What is the difference between awk and grep?

0 Answers  


How do you stop a running process?

7 Answers  


What is the use of finger command?

0 Answers  


What is the use of cut command in unix?

0 Answers  


What are filter commands in unix?

0 Answers  


Which command can you use to find the currently running process in unix server?

0 Answers  


What is the difference between cat and more command?

0 Answers  


What is the difference between AWK and SED commands? Plz give example and explain...

3 Answers   RBS,


Categories