How to Make or Create Symbolic Link in Unix or Linux כיצד ליצור או ליצור קישור סמלי ב Unix או Linux
Symbolic link (also known as symlink or soft link) is a special type of file that has reference that points to another file or directory, in the form of an absolute or relative path. קישור סמלי (המכונה גם קישור סמלי או רך קישור) הוא סוג מיוחד של קובץ שיש לו סימוכין שמכוונת אחר קובץ או ספרייה, בצורת מוחלט או נתיב יחסי. Symbolic link can be used just like the target original file or folder, as it merely contains a text string that is interpreted and followed by the operating system to another file or directory. קישור סמלי יכול לשמש בדיוק כמו המטרה המקורית של הקובץ או התיקייה, כפי שהיא מכילה רק מחרוזת טקסט זה לפרש ו ואחריו את מערכת ההפעלה לקובץ אחר או ספרייה.
Symbolic link is supported on most Unix-like (including Linux) operating systems, Windows Vista (see קישור סמלי נתמך ב-Unix הכי אוהב (כולל לינוקס) מערכות ההפעלה של Windows Vista (ראה Windows Vista symbolic link, hard link and junction point Windows Vista קישור סמלי קשה הקישור ואת צומת הצבע ) and to some degree in Windows 2000 and Windows XP. ) ובמידה מסוימת ב-Windows 2000 ו-Windows XP. Although symbolic link is pointing to a target, it operates independently of its target (deletion of symbolic link does not been affected), but allows program to behave as if operating directly on the target file. קישור סמלי אף הוא הצביע על מטרה, היא פועלת באופן עצמאי היעד שלה (מחיקת קישור סימבולי לא הייתה כל השפעה על), אך התוכנית מאפשרת להתנהג כאילו ההפעלה ישירות על קובץ היעד.
So how to create or make a symbolic link? אז איך ליצור או ליצור קישור סמלי? To create a symbolic, use the following command syntax: כדי ליצור סמלי, השתמש בתחביר הפקודה הבאה:
ln -s [target directory or file] [symlink shortcut]
For example, to link the /usr/local/lib/example directory to /example, use the following command: לדוגמה, כדי לקשר את / usr / local / lib / דוגמא במדריך אל / לדוגמה, השתמש בפקודה הבאה:
ln -s /usr/local/lib/example /example local ln -s /usr/local/lib/example /example
After creating the symbolic link above, /example will point to /usr/local/lib/example, and when user changes directory (CD) to /example, OS shell will automatically change it to /usr/local/lib/example directory. לאחר יצירת קישור סימבולי לעיל, / דוגמא יהיו נקודת אל / usr / local / lib / דוגמה, וכאשר המשתמש שינויים במדריך (תקליטור) אל / לדוגמה, מערכת ההפעלה באופן אוטומטי פגז לשנות אותו אל / usr / local / lib / דוגמא במדריך.
IMPORTANT : The page is machine translated and provided "as is" without warranty. חשוב: הדף הוא מכונה בתרגום ובתנאי "כמות שהוא", ללא אחריות. Machine translation may be difficult to understand. תרגום מכונה יכול להיות קשה להבין. Please refer to אנא פנה ל original English article המאמר המקורי באנגלית whenever possible. ככל שניתן.
Related Articles מאמרים קשורים
- Change Group Ownership of Symbolic Links in Unix or Linux שינוי הבעלות של קבוצת Symbolic קישורים Unix או Linux
- Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK צור Symbolic קישורים, קשה קישורים וספריות Junctions ב Vista עם MKLINK
- Refresh Linux or Unix Path Environmental Variables with rehash רענן לינוקס או Unix נתיב משתני סביבה עם rehash
- How to Mount USB Disk Drive in UNIX or Linux כיצד הר USB כונן הדיסק ב-UNIX או לינוקס
- How to Calculate and Generate MD5 Hash Value in Linux and Unix with md5sum כיצד לחשב MD5 שירים וליצור ערך Unix ו-Linux עם md5sum
- How to Change or Spoof MAC Address in Windows XP, Vista, Server 2003/2008, Mac OS X, Unix and Linux כיצד לשנות או מתיחה כתובת MAC ב-Windows XP, Vista, Server 2003/2008, Mac OS X, Unix ו-Linux
- Convert and Create Windows, Mac OS X, or Linux Icons with iConvert המר וליצור Windows, Mac OS X או לינוקס עם סמלים iConvert
- Open, Extract and Convert DAA, ISO and BIN Files in Linux with Free PowerISO for Linux פתח, חלץ ו DAA המר, ISO ו המיחזור קבצים ב-Linux עם PowerISO חינם עבור לינוקס
- Find Files that are Modified Today (or Since Certain Time Ago) in Unix מצא הקבצים שהשתנו היום (או מאז לפני זמן מסוימים) ב-Unix
- Oracle Database Link קישור ל-Oracle Database









































