SlideShare a Scribd company logo
1 of 1
Download to read offline
Answer
A link in UNIX is a pointer which is pointing to a file or a directory. Creating links is a kind of
shortcuts to access a file. A link is simply a way to refer to the contents of a file. The two
different types of links in UNIX are:
ln source_File target_file
Example
suppose that we have a file source_file.txt that contains the text data.
Now we use the command to create a link to source_file.txt called result_file.txt
Now, the two names source_file.txt and result_file.txt refer to the same data:
So any Modification to result file leads to auto change in source file.
ln -s source_File.txt soft_file.txt
If we remove the file source_file.txt, we can no longer access the data through the soft link
soft_file.txt The link soft_file.txt contains the name source_file.txt, and there no longer is a file
with that name.
On the other hand, result_file.txt has its own pointer to the contents of the file we called
source_file.txt, and hence we can still use it to access the data.
Solution
Answer
A link in UNIX is a pointer which is pointing to a file or a directory. Creating links is a kind of
shortcuts to access a file. A link is simply a way to refer to the contents of a file. The two
different types of links in UNIX are:
ln source_File target_file
Example
suppose that we have a file source_file.txt that contains the text data.
Now we use the command to create a link to source_file.txt called result_file.txt
Now, the two names source_file.txt and result_file.txt refer to the same data:
So any Modification to result file leads to auto change in source file.
ln -s source_File.txt soft_file.txt
If we remove the file source_file.txt, we can no longer access the data through the soft link
soft_file.txt The link soft_file.txt contains the name source_file.txt, and there no longer is a file
with that name.
On the other hand, result_file.txt has its own pointer to the contents of the file we called
source_file.txt, and hence we can still use it to access the data.

More Related Content

Similar to AnswerA link in UNIX is a pointer which is pointing to a file or a.pdf

2nd part
2nd part2nd part
2nd part
dgzz
 
Software Systems Modularization
Software Systems ModularizationSoftware Systems Modularization
Software Systems Modularization
chiao-fan yang
 

Similar to AnswerA link in UNIX is a pointer which is pointing to a file or a.pdf (20)

Learning Bash For linux Command Line
Learning Bash For linux Command LineLearning Bash For linux Command Line
Learning Bash For linux Command Line
 
Data file handling in python introduction,opening & closing files
Data file handling in python introduction,opening & closing filesData file handling in python introduction,opening & closing files
Data file handling in python introduction,opening & closing files
 
Data file handling in python introduction,opening & closing files
Data file handling in python introduction,opening & closing filesData file handling in python introduction,opening & closing files
Data file handling in python introduction,opening & closing files
 
File Input/output, Database Access, Data Analysis with Pandas
File Input/output, Database Access, Data Analysis with PandasFile Input/output, Database Access, Data Analysis with Pandas
File Input/output, Database Access, Data Analysis with Pandas
 
Unix-module3.pptx
Unix-module3.pptxUnix-module3.pptx
Unix-module3.pptx
 
Unit 3
Unit 3Unit 3
Unit 3
 
File management
File managementFile management
File management
 
Ch10
Ch10Ch10
Ch10
 
Disclosing Private Information from Metadata, hidden info and lost data
Disclosing Private Information from  Metadata, hidden info and lost data Disclosing Private Information from  Metadata, hidden info and lost data
Disclosing Private Information from Metadata, hidden info and lost data
 
Meta documents and query extension to enhance information retrieval process
Meta documents and query extension to enhance information retrieval processMeta documents and query extension to enhance information retrieval process
Meta documents and query extension to enhance information retrieval process
 
2nd part
2nd part2nd part
2nd part
 
QSpiders - Unix Operating Systems and Commands
QSpiders - Unix Operating Systems  and CommandsQSpiders - Unix Operating Systems  and Commands
QSpiders - Unix Operating Systems and Commands
 
Files
FilesFiles
Files
 
Files
FilesFiles
Files
 
Links
LinksLinks
Links
 
Intake 37 11
Intake 37 11Intake 37 11
Intake 37 11
 
Software Systems Modularization
Software Systems ModularizationSoftware Systems Modularization
Software Systems Modularization
 
DFH PDF-converted.pptx
DFH PDF-converted.pptxDFH PDF-converted.pptx
DFH PDF-converted.pptx
 
Apply hibernate to model and persist associations mappings in document versio...
Apply hibernate to model and persist associations mappings in document versio...Apply hibernate to model and persist associations mappings in document versio...
Apply hibernate to model and persist associations mappings in document versio...
 
APPLY HIBERNATE TO MODEL AND PERSIST ASSOCIATIONS MAPPINGS IN DOCUMENT VERSIO...
APPLY HIBERNATE TO MODEL AND PERSIST ASSOCIATIONS MAPPINGS IN DOCUMENT VERSIO...APPLY HIBERNATE TO MODEL AND PERSIST ASSOCIATIONS MAPPINGS IN DOCUMENT VERSIO...
APPLY HIBERNATE TO MODEL AND PERSIST ASSOCIATIONS MAPPINGS IN DOCUMENT VERSIO...
 

More from anonakitchen

(a). The posterior pole of the embryo of drosophila contains essenti.pdf
(a). The posterior pole of the embryo of drosophila contains essenti.pdf(a). The posterior pole of the embryo of drosophila contains essenti.pdf
(a). The posterior pole of the embryo of drosophila contains essenti.pdf
anonakitchen
 
With the HNMR the two CH3s are chemically equiv.pdf
                     With the HNMR the two CH3s are chemically equiv.pdf                     With the HNMR the two CH3s are chemically equiv.pdf
With the HNMR the two CH3s are chemically equiv.pdf
anonakitchen
 
Vibration and WavesT = 2pisqrt(mk)v = lambdafp = A sin(kx.pdf
Vibration and WavesT = 2pisqrt(mk)v = lambdafp = A sin(kx.pdfVibration and WavesT = 2pisqrt(mk)v = lambdafp = A sin(kx.pdf
Vibration and WavesT = 2pisqrt(mk)v = lambdafp = A sin(kx.pdf
anonakitchen
 
The following steps illustrate how to write a simple Level-2 MATLAB .pdf
The following steps illustrate how to write a simple Level-2 MATLAB .pdfThe following steps illustrate how to write a simple Level-2 MATLAB .pdf
The following steps illustrate how to write a simple Level-2 MATLAB .pdf
anonakitchen
 
Please find the required program below with output#include stdio.pdf
Please find the required program below with output#include stdio.pdfPlease find the required program below with output#include stdio.pdf
Please find the required program below with output#include stdio.pdf
anonakitchen
 

More from anonakitchen (20)

1) Current assets = Net working capital + Current liabilities = $1,0.pdf
1) Current assets = Net working capital + Current liabilities = $1,0.pdf1) Current assets = Net working capital + Current liabilities = $1,0.pdf
1) Current assets = Net working capital + Current liabilities = $1,0.pdf
 
-7 & 16Solution-7 & 16.pdf
-7 & 16Solution-7 & 16.pdf-7 & 16Solution-7 & 16.pdf
-7 & 16Solution-7 & 16.pdf
 
(a). The posterior pole of the embryo of drosophila contains essenti.pdf
(a). The posterior pole of the embryo of drosophila contains essenti.pdf(a). The posterior pole of the embryo of drosophila contains essenti.pdf
(a). The posterior pole of the embryo of drosophila contains essenti.pdf
 
As per interest rate parity, Expected.pdf
    As per interest rate parity,                              Expected.pdf    As per interest rate parity,                              Expected.pdf
As per interest rate parity, Expected.pdf
 
With the HNMR the two CH3s are chemically equiv.pdf
                     With the HNMR the two CH3s are chemically equiv.pdf                     With the HNMR the two CH3s are chemically equiv.pdf
With the HNMR the two CH3s are chemically equiv.pdf
 
there is no image .pdf
                     there is no image                               .pdf                     there is no image                               .pdf
there is no image .pdf
 
resonance structures 1 and 3 from the top reson.pdf
                     resonance structures 1 and 3 from the top  reson.pdf                     resonance structures 1 and 3 from the top  reson.pdf
resonance structures 1 and 3 from the top reson.pdf
 
probability = (0.2-0.1)10 = 0.01 ANSWER .pdf
                     probability = (0.2-0.1)10  = 0.01  ANSWER       .pdf                     probability = (0.2-0.1)10  = 0.01  ANSWER       .pdf
probability = (0.2-0.1)10 = 0.01 ANSWER .pdf
 
Molecular solid Solution .pdf
                     Molecular solid Solution                     .pdf                     Molecular solid Solution                     .pdf
Molecular solid Solution .pdf
 
IV II I III .pdf
                     IV  II  I  III                                .pdf                     IV  II  I  III                                .pdf
IV II I III .pdf
 
It is methane since there is only 1 Carbon and it.pdf
                     It is methane since there is only 1 Carbon and it.pdf                     It is methane since there is only 1 Carbon and it.pdf
It is methane since there is only 1 Carbon and it.pdf
 
When finding E why did you divide the molar mass of copper by 2.pdf
When finding E why did you divide the molar mass of copper by 2.pdfWhen finding E why did you divide the molar mass of copper by 2.pdf
When finding E why did you divide the molar mass of copper by 2.pdf
 
Thermochemistry is the study of the energy and heat associated with .pdf
Thermochemistry is the study of the energy and heat associated with .pdfThermochemistry is the study of the energy and heat associated with .pdf
Thermochemistry is the study of the energy and heat associated with .pdf
 
Vibration and WavesT = 2pisqrt(mk)v = lambdafp = A sin(kx.pdf
Vibration and WavesT = 2pisqrt(mk)v = lambdafp = A sin(kx.pdfVibration and WavesT = 2pisqrt(mk)v = lambdafp = A sin(kx.pdf
Vibration and WavesT = 2pisqrt(mk)v = lambdafp = A sin(kx.pdf
 
The following steps illustrate how to write a simple Level-2 MATLAB .pdf
The following steps illustrate how to write a simple Level-2 MATLAB .pdfThe following steps illustrate how to write a simple Level-2 MATLAB .pdf
The following steps illustrate how to write a simple Level-2 MATLAB .pdf
 
CO + 2H2 =CH3OH moles of CO = 2528 moles of H2 =.pdf
                     CO + 2H2 =CH3OH moles of CO = 2528 moles of H2 =.pdf                     CO + 2H2 =CH3OH moles of CO = 2528 moles of H2 =.pdf
CO + 2H2 =CH3OH moles of CO = 2528 moles of H2 =.pdf
 
Solution for Q-23a) Pay interest on bank reserve ( The main tool a.pdf
Solution for Q-23a) Pay interest on bank reserve ( The main tool a.pdfSolution for Q-23a) Pay interest on bank reserve ( The main tool a.pdf
Solution for Q-23a) Pay interest on bank reserve ( The main tool a.pdf
 
Cant see the question.. .pdf
                     Cant see the question..                        .pdf                     Cant see the question..                        .pdf
Cant see the question.. .pdf
 
Please find the required program below with output#include stdio.pdf
Please find the required program below with output#include stdio.pdfPlease find the required program below with output#include stdio.pdf
Please find the required program below with output#include stdio.pdf
 
Note 2 Types of variables dataSolutionNote 2 Typ.pdf
Note 2 Types of variables  dataSolutionNote 2 Typ.pdfNote 2 Types of variables  dataSolutionNote 2 Typ.pdf
Note 2 Types of variables dataSolutionNote 2 Typ.pdf
 

Recently uploaded

SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
Peter Brusilovsky
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
httgc7rh9c
 

Recently uploaded (20)

Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of Play
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptx
 
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdfDiuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 

AnswerA link in UNIX is a pointer which is pointing to a file or a.pdf

  • 1. Answer A link in UNIX is a pointer which is pointing to a file or a directory. Creating links is a kind of shortcuts to access a file. A link is simply a way to refer to the contents of a file. The two different types of links in UNIX are: ln source_File target_file Example suppose that we have a file source_file.txt that contains the text data. Now we use the command to create a link to source_file.txt called result_file.txt Now, the two names source_file.txt and result_file.txt refer to the same data: So any Modification to result file leads to auto change in source file. ln -s source_File.txt soft_file.txt If we remove the file source_file.txt, we can no longer access the data through the soft link soft_file.txt The link soft_file.txt contains the name source_file.txt, and there no longer is a file with that name. On the other hand, result_file.txt has its own pointer to the contents of the file we called source_file.txt, and hence we can still use it to access the data. Solution Answer A link in UNIX is a pointer which is pointing to a file or a directory. Creating links is a kind of shortcuts to access a file. A link is simply a way to refer to the contents of a file. The two different types of links in UNIX are: ln source_File target_file Example suppose that we have a file source_file.txt that contains the text data. Now we use the command to create a link to source_file.txt called result_file.txt Now, the two names source_file.txt and result_file.txt refer to the same data: So any Modification to result file leads to auto change in source file. ln -s source_File.txt soft_file.txt If we remove the file source_file.txt, we can no longer access the data through the soft link soft_file.txt The link soft_file.txt contains the name source_file.txt, and there no longer is a file with that name. On the other hand, result_file.txt has its own pointer to the contents of the file we called source_file.txt, and hence we can still use it to access the data.