How can you create a symbolic link to a file or directory?



How can you create a symbolic link to a file or directory?..

Answer / hr@tgksolutions.com

Symbolic links (often called symlinks or soft links) can be crafted using the ln command with the -s option. The general form is ln -s target source_link. This creates a symbolic link named source_link that points to the target. Unlike hard links, symbolic links can reference directories or files across different file systems. They are especially useful for creating shortcuts or ensuring multiple paths to a single resource.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix Commands Interview Questions

How to open a Database using Unix Command Please Do Reply

9 Answers   Cognizant, CTS,


What is a bash command?

0 Answers  


How to use grep command to list find the records of a file containing 10 different strings?

0 Answers  


Why is shebang used?

0 Answers  


what does a process mean?

7 Answers   Infosys,


What is a Unix signal, and how do you handle them?

2 Answers  


How do you grep a case insensitive?

0 Answers  


How to redirect standard error to a file?

2 Answers  


What command is used to switching between users in unix?

0 Answers  


Why we are using UNIX OS when we are doing the testing in our application?

5 Answers   IBM,


What does awk stand for?

0 Answers  


How can we "forked" process in UNIX? How then recognize in any of the branches we?

2 Answers   NIIT,


Categories