How to Make or Create Symbolic Link in Unix or Linux Kā veikt vai Izveidot simbolisks posmā Unix vai 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. Simboliskā saite (zināms arī kā symlink vai mīksto saite) ir īpaša veida datnes, kas ir atskaites, kas norāda uz citu failu vai direktoriju, kā absolūto vai relatīvo ceļu. 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. Simboliska saite, var izmantot tāpat kā mērķa sākotnējo failu vai mapi, jo tas aprobežojas tikai ar teksta virkni, kas ir jāinterpretē un seko operētājsistēmu uz citu failu vai direktoriju.
Symbolic link is supported on most Unix-like (including Linux) operating systems, Windows Vista (see Simboliskā saite ir atbalstījusi lielāko daļu Unix līdzīgas (tai skaitā Linux) operētājsistēmām, Windows Vista (skatīt Windows Vista symbolic link, hard link and junction point Windows Vista simboliskas saites, cietās saites un krustojuma punkts ) and to some degree in Windows 2000 and Windows XP. ) Un zināmā mērā ar Windows 2000 un 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. Lai gan simboliska saite ir norāda uz mērķi, tā darbojas neatkarīgi no tās mērķa (svītrojums simbolisko saite nav iespaidojis), bet ļauj programmai uzvesties tā, it kā darbojas tieši uz mērķa failu.
So how to create or make a symbolic link? Tā kā, lai radītu vai veikt simboliska saite? To create a symbolic, use the following command syntax: Lai izveidotu simboliski, lietojiet šādu komandu sintaksi:
ln -s [target directory or file] [symlink shortcut]
For example, to link the /usr/local/lib/example directory to /example, use the following command: Piemēram, lai saistīt / usr / local / pārliecinamies, piemēram directory to / piemēram, izmantojiet komandu:
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. Pēc radot simbolisku saite iepriekš, / piemēram būs punkts uz / usr / local / pārliecinamies, piemēram, un tad, kad lietotājs izmaiņas directory (CD) to / Piemēram, OS apvalks automātiski mainīt uz / usr / local / pārliecinamies, piemēram, direktoriju.
IMPORTANT : The page is machine translated and provided "as is" without warranty. SVARĪGI: Šī lapa ir mašīna tulkoto un ar nosacījumu ", kas ir" bez garantijas. Machine translation may be difficult to understand. Machine translation var būt grūti saprast. Please refer to Lūdzu, skatiet original English article oriģināls angļu rakstu whenever possible. kad vien iespējams.
Related Articles Saistītie raksti
- Change Group Ownership of Symbolic Links in Unix or Linux Mainīt grupas Īpašumtiesības uz simboliskas saites Unix vai Linux
- Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK Izveidot simbolisks Saites, Hard Saites un Direktorija krustojumu in Vista ar MKLINK
- Refresh Linux or Unix Path Environmental Variables with rehash Atjaunot Linux vai Unix Path Vides Mainīgie ar rehash
- How to Mount USB Disk Drive in UNIX or Linux Kā Mount USB Disk Drive in UNIX vai Linux
- How to Calculate and Generate MD5 Hash Value in Linux and Unix with md5sum Kā aprēķināt un Ģenerējiet MD5 Hash vērtība Linux un Unix ar md5sum
- How to Disable Linux and Unix Cron Jobs (Crontab) Email Sending Kā Atslēgt Linux un Unix Cron darbavietām (Crontab) E-pasts sūtīšana
- How to Change or Spoof MAC Address in Windows XP, Vista, Server 2003/2008, Mac OS X, Unix and Linux Kā nomainīt vai šmaukšana MAC Adrese Windows XP, Vista, Server 2003/2008, Mac OS X, Unix un Linux
- Convert and Create Windows, Mac OS X, or Linux Icons with iConvert Convert un izveidot Windows, Mac OS X vai Linux Ikonas ar iConvert
- Open, Extract and Convert DAA, ISO and BIN Files in Linux with Free PowerISO for Linux Atveriet, Ekstrahētais un Convert DAA, ISO un BIN failus Linux bezmaksas PowerISO Linux
- Find Files that are Modified Today (or Since Certain Time Ago) in Unix Atrast failus, kas ir Pārveidots Šodien (vai kopš noteiktā laika Ago) in Unix









































