How to Make or Create Symbolic Link in Unix or Linux Hur göra eller Skapa Symbolisk länk i Unix eller 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. Symbolisk länk (även känd som en symbolisk länk eller mjuk länk) är en speciell typ av fil som referens som pekar på en annan fil eller katalog, i form av en absolut eller relativ sökväg. 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. Symbolisk länk kan användas precis som målet ursprungliga filen eller mappen, eftersom det endast innehåller en text sträng som tolkas och följs av operativsystemet till en annan fil eller katalog.
Symbolic link is supported on most Unix-like (including Linux) operating systems, Windows Vista (see Symbolisk länk stöds på de flesta Unix-liknande (inklusive Linux) operativsystem, Windows Vista (se Windows Vista symbolic link, hard link and junction point Windows Vista symbolisk länk, hård länk och korsningen punkt ) and to some degree in Windows 2000 and Windows XP. ) Och i viss mån i Windows 2000 och 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. Även om symbolisk länk pekar till ett mål, det fungerar oberoende av sitt mål (strykning av symbolisk länk inte påverkats), men tillåter programmet att bete sig som om de verkar direkt på målfilen.
So how to create or make a symbolic link? Så hur du skapar eller göra en symbolisk länk? To create a symbolic, use the following command syntax: För att skapa en symbolisk, använder du följande kommando 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: Om du till exempel vill koppla / usr / local / lib / exempel katalogen / exempel, använder du följande kommando:
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. Efter att skapa en symbolisk länk ovan / exempel att peka på / usr / local / lib / exempel, och när användaren ändrar katalog (CD) till / exempel OS skal kommer automatiskt att ändra till / usr / local / lib / exempel katalog.
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. VIKTIGT: Detta är en maskin som översatt sida som tillhandahålls "i befintligt skick" utan garanti. Machine translation may be difficult to understand. Maskinöversättning kan vara svårt att förstå. Please refer to Se original English article ursprungliga engelska artikeln whenever possible. när så är möjligt.
Share and contribute or get technical support and help at Dela och bidra eller få teknisk support och hjälp vid My Digital Life Forums Mitt digitala liv forum .
Related Articles Relaterade artiklar
- Change Group Ownership of Symbolic Links in Unix or Linux Ändra grupp ägande av symboliska länkarna i Unix eller Linux
- How to Mount USB Disk Drive in UNIX or Linux Hur att montera USB-hårddisk i UNIX eller Linux
- Refresh Linux or Unix Path Environmental Variables with rehash Uppdatera Linux eller Unix Path miljövariabler med uppkok
- How to Change or Spoof MAC Address in Windows XP, Vista, Server 2003/2008, Mac OS X, Unix and Linux Hur du ändrar eller PARODI MAC-adress i Windows XP, Vista, Server 2003/2008, Mac OS X, Unix och Linux
- Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK Skapa symboliska länkar, Hard Länkar och Directory vägkorsningar i Vista med MKLINK
- Open, Extract and Convert DAA, ISO and BIN Files in Linux with Free PowerISO for Linux Öppna, extrahera och Konvertera DAA, ISO och BIN-filer i Linux med Fri PowerISO för Linux
- Find Files that are Modified Today (or Since Certain Time Ago) in Unix Hitta filer som är Ändrad dag (eller sedan viss tid sedan) i Unix
- (Enhance) Concurrent Capable and Big vg Format Volume Group in AIX Unix (Förbättra) Samtidig kan och Big VG Format Volym Grupp i AIX Unix
- Create New Table by Selecting Data from Other Tables with CREATE TABLE AS Skapa ny tabell genom att välja data från andra tabeller med CREATE TABLE AS
- Cheapest Linux Box Ever Billigaste Linux Box någonsin

























