• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Symbolic Link : Basics and Creation in OS X, Linux, Windows

By Abhishek Ghosh April 29, 2013 1:28 am Updated on April 29, 2013

Symbolic Link : Basics and Creation in OS X, Linux, Windows

Advertisement

Symbolic Link or symlink is a linking system within in files and directories that points to another file or directory usually in UNIX ot Unix derivative OS. Symbolic Link can be created in Windows Operating System too, beside Linux, BSD and OS X. Symbolic Link is equivalent to the word Soft Link as unlike a hard link, this reference is not equivalent to the actual file system entry in the referenced file and deleting the original file makes the Symbolic Link invalid.

 

Basics About Symbolic Link or symlink

 

The advantage of using symbolic link is that these works over the partitions and are also on file system-wide they can easily point to a place which is not the case with the hard links. Although hard linking to directories in principle possible, but should be avoided and may be applied as a rule only by the system administrator. Symbolic link can confuse the users, as it seems at first glance as if the linked file is present simultaneously in multiple directories, deleting the original file, however, leads file loss.

 

Symbolic links to the directories can be problematic when users or programs deal with clueless directory trees. This creates an endless loop and thus a buffer overflow which leads to crashes or dangerous malfunctions. Unix tries to prevent this to some degree, by prohibiting to delete a symbolic link to a directory by the system command “rmdir” so clueless symbolic links prompt an error message if when wanting to remove such a link is done.

Advertisement

---

 

Using Symbolic Link or symlink

 

Using Symbolic Link in OS X :

 

ln (small letters of LN) command normally uses the link() unix call, which actually creates a hard link. If we use -s flag it will become a symlink() call, so the command will be ln -s

Symbolic Link

 

Vim
1
ln -s <span style="color: #ff0000;">/target/path</span> <span style="color: #008000;">/link/path</span>

 

Using Symbolic Link in Linux :

 

The usage is same like OS X. The command ls -l (small letters of LS -L) returns the output of the full path in both cases.

 

Using Symbolic Link in Windows OS :

 

As Windows is a closed source system, command line implementations are not very clear. Symlink in Windows OS is read only or has a system attribute. You have seen the files like start.lnk – these are symbolic files to the application.  There is no exact ln -s command in Windows or rather the command is not known. desktop.ini is also a symbolic link pointing towards specific value of [.ShellClassInfo]. This is an example fake script to run shell script to create a symbolic link :

 

Vim
1
...

Vim
1
[HKEY_CLASSES_ROOTCLSID{ID}]

Vim
1
@="name"

Vim
1
[HKEY_CLASSES_ROOTCLSID{ID}DefaultIcon]

Vim
1
@="..." ; path to icon

Vim
1
[HKEY_CLASSES_ROOTCLSID{ID}Server32]

Vim
1
@="%SystemRoot%\System32\Doc.Dll"

Vim
1
[HKEY_CLASSES_ROOTCLSID{ID}Instance]

Vim
1
"CLSID"="{specific-ID}"

Vim
1
[HKEY_CLASSES_ROOTCLSID{ID}InstanceProperty] "

Vim
1
...

 

Please do not request me for writing any Windows related tutorials, you can read older tutorials like listed in Windows 7 Right Click Menu Tips,Tricks and Tutorials. Any Linux or OS X requests (Server/ Desktop) is always entertained.

 
Abhishek-Ghosh

Tagged With Symbolic Link command in Linux , symbolic link in unix

This Article Has Been Shared 190 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Symbolic Link : Basics and Creation in OS X, Linux, Windows

  • Fix Mountain Lion Slow Shut Down Time

    Fix Mountain Lion Slow Shut Down Time that takes more than ~3 sec to shut down after a gray screen with spinning icon. 20 second shutdown is not nice for a Mac.

  • FAQs on Ubuntu 12.04 after Upgrading from Windows

    FAQs on Ubuntu 12.04 after Upgrading from Windows are for the new users of Ubuntu who are not even aware of small tweaks like activating transparency effect.

  • Dock of Mac OS X : Details and Tweaks

    Dock of Mac OS X is an icon of Mac itself. Dock derived from OS X’s predecessor NeXTSTEP Operating System. Dock of OS X has several discovered tweaks.

  • ReactOS : Windows Application Compatible Open Source OS

    ReactOS is a free operating system that is compatible with Microsoft Windows applications with the goal to complete binary compatibility for Microsoft Windows.

  • How to Share Files and Folders Between Windows and Mac or Linux

    How to Share Files and Folders Between Windows and Mac or Linux ? Normally users uses a router to connect. But you can use Wi-fi, Bluetooth or other cables too.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023
  • What is Vehicular Ad-Hoc Network? January 24, 2023
  • Difference Between Panel Light, COB Light, Track Light January 21, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Symbolic Link : Basics and Creation in OS X, Linux, Windows," in The Customize Windows, April 29, 2013, January 29, 2023, https://thecustomizewindows.com/2013/04/symbolic-link-basics-and-creation-in-os-x-linux-windows/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT