• 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
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

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Command Prompt Commands : Alphabetical list of all commands in Windows 7

    Command Prompt Commands in Windows 7 provides the user access to 180+ command line commands. Here is a list of 200 Command Prompt Commands in Windows 7.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

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

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
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