Question

In: Computer Science

Describe hard and symbolic links. What is the difference between them?

Describe hard and symbolic links. What is the difference between them?

Solutions

Expert Solution

Hello,

Links are nothing but it just points to a file or we can say the pointer of the file or a directory in linux.

Links are of two types.

1. Symbolic links or soft link

2. Hard links

Main difference between these both links are that when you delete a file or move a file, symbolic links will also be removed. But in case of hard link, it will always keep that link to source file. So hard link will not be removed.

Hard link contains the file content while soft links containthe parh of original file.

As hard link contains the all content of file or directory, so we should avoid to create hard links for directory. Instead of that we have to use soft links.

We can not use hard link to link it with other files as it contains the file content while soft link can be used to link a file between whole system.

To create hard link:

ln original_file_name link_name

To create soft link:

ln -s original_file_name link_name

THAT'S IT FROM MY SIDE, IF YOU HAVE ANY DOUNT, COMMENT HERE AND IF YOU LIKE THIS ANSWER, GIVE ME A LIKE.


Related Solutions

describe HALT and HASS testing. what is the major difference between them ?
describe HALT and HASS testing. what is the major difference between them ?
What is the difference between a soft and hard page fault?
What is the difference between a soft and hard page fault?
Describe "juke-joints" and honky "tonks". What is the difference between them? What dances came from them?...
Describe "juke-joints" and honky "tonks". What is the difference between them? What dances came from them? What do we have in today's social dance environment that parallels these phenomena's of the early 20th Century dance scene? What is the difference today? (it is a dance subject)
What is the difference between symbolic and functional consumer needs? Give an example for each
What is the difference between symbolic and functional consumer needs? Give an example for each
What is the difference between the symbolic interactionist, functionalist and conflict perspectives on violence? Which types...
What is the difference between the symbolic interactionist, functionalist and conflict perspectives on violence? Which types of violence are best explained by each theory.
What is a population, what is a sample, and what is the difference between them?
 What is a population, what is a sample, and what is the difference between them? What is a population? A. A population is the set of entities that are not contained in a sample. B. A population is a characteristic found by summarizing raw data. C. A population is a portion of the entities of interest to a researcher that the researcher uses to gather data. D. A population is the entire group of entities of interest to a researcher. E. A population is the range...
What is an asset? What is a liability? What is the difference between them? Can an...
What is an asset? What is a liability? What is the difference between them? Can an organization operate without current liabilities? Explain your answer.
Currency options. What are the two types, and what is the difference between them? What is...
Currency options. What are the two types, and what is the difference between them? What is the break-even point for each type? Conceptually understand and be able to mathematically work with them. A. You purchase a put option on the Canadian dollar with a strike price of $0.91 and a premium of $0.02. If before expiration the spot rate of the Canadian dollar is $0.92, will you exercise the option? b. What if the spot rate before expiration is $0.88?...
What are the basic principles of FAA and ICP-OES, and what is the difference between them?
What are the basic principles of FAA and ICP-OES, and what is the difference between them?
What is the difference between economic and accounting profit? Why is a distinction between them important?
What is the difference between economic and accounting profit? Why is a distinction between them important?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT