MKLINK·Î ºñ½ºÅ¸¿¡ ÀÖ´Â »ó¡ ¿¬°á, ´Ü´ÜÇÑ ¿¬°á ¹× ÀüȹøÈ£ºÎ Á¢¼ÓÁ¡À» âÁ¶ÇϽʽÿÀ
À¯´Ð½º °°ÀÌ ¸¦ À§ÇÑ ¶Ç´Â Linux ½Ã½ºÅÛ »ç¿ëÀÚ´Â, »ó¡ ¿¬°á °ÅÀÇ ¸ÅÀÏ »ç¿ëÁßÀÎ ÀϹÝÀûÀÎ ¼Ò°ßÀÌ´Ù. »ó¡ ¿¬°á (aka ¿¬¾àÇÑ ¿¬°á) ¶Ç´Â ¼ö½Ã·Î¿¡ ´ÜÃàµÈ ±×°ÍÀ¸·Î symlink´Â, Ç¥ÀûÀ¸·Î ¾Ë·ÁÁ® ÀÖ´Â ´Ù¸¥ ÆÄÀÏ, UNC ¶Ç´Â ÀüȹøÈ£ºÎ¿¡ Âü°í ¶Ç´Â Á¡À¸·Î ºÀ»çÇÏ´Â ÆÄÀϽýºÅÛ ¸ñÇ¥ ÆÄÀÏÀÇ Æ¯º°ÇÑ À¯Çü ÀÌ´Ù. â ºñ½ºÅ¸¿¡¼´Â, symlinks Ư¡Àº NTFS ÆÄÀϽýºÅÛ¿¡ Ãß°¡µÇ°í »ç¿ëÇØ¼ âÁ¶µÉ ¼ö ÀÖ´Ù MKLINK ¸í·É. ÀÌÀü ⠿ ü°è¿¡¼´Â, »ó¡ ¿¬°á¿¡ ´õ °¡±î¿î °ÍÀº NTFS Á¢ÇÕ ÁöÁ¡ÀÌ´Ù, ¶Ç´Â ´õ ³ª»Û, âÀº Æí¹ý (.lnk) ÆÄÀÏÀ» ¹þ±ä´Ù.
2 ¹ÙÅÁ È¸é ¶Ç´Â Windows Explorer¿¡¼ Áö¸§±æÀ» ÅÃÇÑ .lnk¿Í´Â ´Ù¸¥ ºñ½ºÅ¸¿¡ ÀÖ´Â Symlink´Â, ŽÇè°¡, ÀåÄ¡ ¹× µîµîÀ» ÅëÇØ, »ç¿ëÀÚ°¡ âÁ¶Çß´Ù »ó¡ ¿¬°á ³»ÀÇ ÆÄÀÏ¿¡ Á¢±ÙÇÏ´Â °ÍÀ» Çã¿ëÇÑ´Ù. ±×¸®°í »ó¡ ¿¬°áÀº ¶ÇÇÑ symlinks°¡ ÆÄÀÏ, UNC, Æú´õ ¶Ç´Â ¾çÀ» °¡¸£Å³ ¼ö Àִ°ú Æú´õ ¾ç¿¡¼¸¸ ¿¬°áÇÒ ¼ö ÀÖ´Â NTFS Á¢ÇÕ ÁöÁ¡°ú ÆÄÀÏ ½Ã½ºÅÛÀ» »ÂÀ¸·Î Àê ¼ö ÀÖ½À´Ï´Ù »Ó¸¸ ¾Æ´Ï¶ó ´Ù¸£´Ù.
»ó¡ ¿¬°áÀº ´ç½ÅÀº ¸¹Àº Æú´õ°¡ ÀÖ°íÀ» ÆÄÀÏÀÌ µð·ºÅ丮 Æ®¸® Àü¸é »Ñ·ÁÁú ¶§ À¯¿ëÇÏ´Ù, ´ç½ÅÀº ´Ü Çϳª À§Ä¡¿¡¼ ±×µéÀ» ó¸®ÇÒ Çʿ䰡 ÀÖ´Ù. ¶Ç ´Ù¸¥ ´ëº»Àº ´ç½ÅÀº ´ç½ÅÀÌ 1 ºÐÁö¿¡ ÀÇÇÏ¿© 1°³ ºÐÁö¸¦ ÅëÇØ¼ °Ç³Ê±â ´ë½Å¿¡ »¡¸® Á¢±ÙÇÏ°í ½ÍÀº ±íÀº º¸±ÝÀÚ¸®°¡ µÈ ÆÄÀÏÀÌ ÀÖ´Ù ÀÌ´Ù. ±×¸®°í °Ô´Ù°¡, ÇÁ·Î±×·¡¸Ó¸¦, symlink´Â ´Ã º¯ÈÇÏ´Â ¸ñÇ¥¿¡ ÇÁ·Î±×·¥ÀÇ ±â´É¿¡ ¿µÇâÀ» ¹ÌÄ¡±â ¾øÀÌ Á¡ÀÏ ¼ö ÀÖ´Â Á¤Ã¼µÇ´Â ÆÄÀÏ °æ·Î¸¦ Á¦°øÇÑ´Ù. ÀÌ ÀüºÎ¿¡¼´Â »óȲ, `ÁøÂ¥' ¸ñÇ¥¸¦ °¡¸£Å°´Â »ó¡ ¿¬°áÀº Æí¸®ÇÑ À§Ä¡¿¡ âÁ¶µÉ ¼ö ÀÖ´Ù.
»ó¡ ¿¬°á ¾ð±ÞµÇ´Â, »ç¿ë MKLINK Ä¿¸Çµå ¶óÀÎ °ø±¸¸¦ âÁ¶Çϱâ À§ÇÏ¿©. MKLINK´Â ´Ü´ÜÇÑ ¿¬°á ¶Ç´Â ÀüȹøÈ£ºÎ Á¢¼ÓÁ¡À» ¿ª½Ã âÁ¶Çϱâ À§ÇÏ¿© ÀÌ¿ëµÉ ¼ö ÀÖ´Ù. ´Ü´ÜÇÑ ¿¬°áÀº ¸ñÇ¥¿¡ ±Ùº»ÀûÀ¸·Î ¿ø·¡ Æú´õ ÀÚüÀ̴٠ó·³ ´Ù¸¥ Æú´õ¿¡ Àüü Æú´õÀÇ ¹æÇâÀ» ¹Ù²Ù´Â À§ÇÏ¿© NTFS ÀüȹøÈ£ºÎ Á¢ÇÕ ÁöÁ¡Àº ÀÌ¿ëµÇ´Â ±×·¯³ª, ´Ù¸¥ À̸§ ¶Ç´Â »óÇ¥¸¦ ÁÖ°í ÀÖ´Ù. Á¢ÇÕ ÁöÁ¡Àº ºñ½ºÅ¸¿¡¼ »õ·Î¿î »ç¿ëÀÚ Æú´õ¿¡ ÀÇÇÏ¿© ã¾Æ³½ ¾ÈÂÊ »ç¿ëÀÚ µð·ºÅ丮¿¡ Á¡¿¡ »ç¿ëÀÚ ÇÁ·ÎÆÄÀÏÀ» ¿À·¡µÈ ÀüȹøÈ£ºÎ ±¸Á¶¸¦ Áö¿øÀ» (i.e ¹®¼¿Í Á¶Á¤) Á¦°øÇϱâ À§ÇÏ¿© ±¤´ëÇÏ°Ô ÀÌ¿ëµÈ´Ù.
MKLINKÀÇ Åë¾î·Ð ±×¸®°í ¼±ÅñÇ
MKLINK [[/D] | [/H] | [/J]] ¿¬°á Ç¥Àû
/D - ÀüȹøÈ£ºÎ »ó¡ ¿¬°áÀ» âÁ¶ÇÑ´Ù. »ó¡ ¿¬°áÀ» ½ÅûÇÏ´Â °úÅÂ.
/H - »ó¡ ¿¬°á ´ë½Å¿¡ ´Ü´ÜÇÑ ¿¬°áÀ» âÁ¶ÇÑ´Ù.
/J - ÀüȹøÈ£ºÎ Á¢¼ÓÁ¡À» âÁ¶ÇÑ´Ù.
¿¬°á - »õ·Î¿î »ó¡ ¿¬°á À̸§À» ÁöÁ¤ÇÑ´Ù.
Target - Specifies the path (relative or absolute) that the new link refers to.
Examples and Usages of MKLINK
Note: Only Administrators can use MKLINK to create symbolic links unless override by using secpol.msc, so you need to run Command Prompt with elevated privileges, or else you will get ¡°You do not have sufficient privilege to perform this operation.¡± error.
To create symbolic link called foo to reference to c:\Windows\System32\notepad.exe:
C:\test>mklink foo c:\Windows\System32\notepad.exe
You will see the following result:
symbolic link created for foo <<===>> c:\Windows\System32\notepad.exe
If you type dir in commnd prompt, you will see the following listing:
Volume in drive C has no label.
Volume Serial Number is 2211-7428Directory of C:\test
04/14/2006 11:24 AM <DIR> .
04/14/2006 11:24 AM <DIR> ..
04/14/2006 11:24 AM <SYMLINK> foo [c:\Windows\system32\notepad.exe]
1 File(s) 0 bytes
2 Dir(s) 69,238,722,560 bytes free
To create symbolic link to a folder, simply use /D switch:
C:\test>mklink /d bar c:\windows
symbolic link created for bar <<===>> c:\windows
Results of dir command:
Volume in drive C has no label.
Volume Serial Number is 2211-7428Directory of C:\test
04/14/2006 11:24 AM <DIR> .
04/14/2006 11:24 AM <DIR> ..
04/14/2006 11:24 AM <SYMLINKD> bar [c:\windows]
04/14/2006 11:24 AM <SYMLINK> foo [c:\Windows\system32\notepad.exe]
1 File(s) 0 bytes
3 Dir(s) 69,238,722,560 bytes free
MKLINK cannot use to delete symbolic link. To remove a symbolic link, simply delete them as if you¡¯re removing a normal file. For example, to delete the foo symbolic link created above, enter the following command:
C:\test>del foo
To remove the bar symbolic link to a folder created above, use the following command:
C:\test>rd bar
IMPORTANT: This is a machine translated page which is provided "as is" without warranty. Machine translation may be difficult to understand. Please refer to original English article whenever possible.
Share and contribute or get technical support and help at My Digital Life Forums.
Related Articles
- 10 New Executables and 20 Old Commands in Windows Vista
- Restore Missing or Deleted Favorite Links Shell Folder
- Change Group Ownership of Symbolic Links in Unix or Linux
- Technorati Incoming Links Plugin for WordPress
- Amazon Context Links for Associates Affiliate Program
- View and Retrieve Oracle Database Link Details
- How to Add Jump Links in the Email
- Add NoFollow Relationship to WordPress Blogroll to Increase PageRank
- Launch and Open Links in New Window or Tab with _blank or _new as Target in HTML and Their Difference
- How to Avoid, Bypass or Escape Google Sandbox




























June 2nd, 2007 04:22
[...] Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK » My Digital Life: [...]
June 23rd, 2008 09:36
I cannot figure out how to go to or switch to a symbolic link after it is created. How do you do it? I can¡¯t find instructions for this mentioned anywhere.
June 25th, 2008 06:32
Thanks for the post, but I don¡¯t see the point of creating a symlink to a file. In your example, you created a symlink called ¡°foo¡± pointing to notepad.exe, but what can you do to the file ¡°foo¡±? It¡¯s not executable, even after I rename it to foo.exe.
Thanks.
July 22nd, 2008 17:39
you can¡¯t execute symlinks, for that you need to make a shortcut the normal way. A symlink is more usefull for ppl to read a certain file wich is in a folder they normaly can¡¯t go to. Or the same file is needed on 2 different folder locations, but you dont want to edit 2 seperate files all the time.