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

Directory 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-7428

Directory 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.



4 Responses to ¡°Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK¡±

  1. The CTRAN weblog » Blog Archive » Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK
    June 2nd, 2007 04:22
    1

    [...] Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK » My Digital Life: [...]

  2. david
    June 23rd, 2008 09:36
    2

    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.

  3. Ed
    June 25th, 2008 06:32
    3

    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.

  4. ludo
    July 22nd, 2008 17:39
    4

    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.

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting


Custom Search

New Articles

Incoming Search Terms for the Article

mklink - vista hard link - mklink vista - mklink download - vista hard links - vista create junction - vista Hardlink - download mklink - vista mklink - vista create link - vista junctions - vista directory link - hard link vista - mklink remove - remove symbolic link - remove symbolic link vista - mklink junction - hard links vista - create junction vista - create link vista - mklink syntax - remove mklink - delete mklink - windows vista hard links - mklink hard link - MKLINK - vista create hard link - create hard link vista - all - create symbolic link vista - vista remove symbolic link - windows vista hard link - vista make link - mklink you do not have sufficient privilege to perform this operation - mklink windows xp - how to use mklink - mklink delete - link folder vista - mklink privileges - vista directory links - create ntfs junction vista - delete junction vista - vista mklink privileges - hard link directory - hard link windows vista - symbolic link Vista - vista junction create - vista delete symbolic link - junction mklink - remove symlink vista -