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 .



Leave a Reply Lämna ett svar

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> Du kan använda dessa taggar: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <Q Cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Prenumerera på kommentarer funktionen har stängts av. To receive notification of latest comments posted, subscribe to Att få ta del av senaste kommentarer skickas, prenumerera på My Digital Life Comments RSS feed Mitt digitala liv kommentarer RSS-flöde or eller register to receive registrera dig för att få new comments in daily email digest. nya kommentarer i den dagliga e-postutskick.
Custom Search

New Articles Nya artiklar

Incoming Search Terms for the Article Inkommande söktermer för artikel

how to create a symbolic link in unix for a directory hur du skapar en symbolisk länk i UNIX för en katalog - --