• 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 714 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 (22.1K 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

  • FaaS Versus PaaS Deployment: What You Should Know May 18, 2022
  • What Is A Digital Media Consultancy? May 17, 2022
  • How Artificial Intelligence (AI) Is Changing The Way We Play Bingo May 16, 2022
  • Why You Need A Big Data Consultant May 15, 2022
  • The Connection Between AI And Online Slots May 13, 2022

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, May 19, 2022, https://thecustomizewindows.com/2013/04/symbolic-link-basics-and-creation-in-os-x-linux-windows/.

Source:The Customize Windows, JiMA.in

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Privacy Policy.

PC users can consult Corrine Chorney for Security.

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

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

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