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-подібних (включаючи Linux) операційної системи, 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 / місцеві / LIB / прикладі каталог / Наприклад, введіть наступну команду:
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 / місцеві / LIB / наприклад, коли користувач змін каталог (CD) к /, наприклад, оболонки ОС автоматично змінити його в / USR / місцеві / 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 Зміна власника групи символічні посилання в Unix або Linux
- Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK Створіть символічні посилання, жорсткі посилання і каталогів перехрестя в Vista з MKLINK
- Refresh Linux or Unix Path Environmental Variables with rehash Оновити Linux або Unix Шлях навколишнього середовища з перефразувати
- How to Mount USB Disk Drive in UNIX or Linux Як гора USB диск у UNIX або Linux
- How to Calculate and Generate MD5 Hash Value in Linux and Unix with md5sum Як розрахувати та генерувати MD5 хеш-значень в Linux та Unix з md5sum
- How to Disable Linux and Unix Cron Jobs (Crontab) Email Sending Як відключити Linux та Unix Робота Cron (Crontab) Email Відправлення
- How to Change or Spoof MAC Address in Windows XP, Vista, Server 2003/2008, Mac OS X, Unix and Linux Як змінити або Spoof MAC-адреси в Windows XP, Vista, Server 2003/2008, Mac OS X, Linux та Unix
- Convert and Create Windows, Mac OS X, or Linux Icons with iConvert Перетворення і створення Windows, Mac OS X або Linux Іконки з iConvert
- Open, Extract and Convert DAA, ISO and BIN Files in Linux with Free PowerISO for Linux Відкрити, витримка і конвертувати DAA, ISO і BIN файлів у Linux з Вільний PowerISO для Linux
- Find Files that are Modified Today (or Since Certain Time Ago) in Unix Пошук файлів, які Модифіковане Сегодня (або З деякий час тому назад) в Unix









































