How to Make or Create Symbolic Link in Unix or Linux Como Fazer ou Crie Symbolic Link em Unix ou 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. Ligação simbólica (também conhecido como link simbólico ou soft link) é um tipo especial de arquivo que tenha referência que aponta para outro arquivo ou diretório, sob a forma de um caminho relativo ou absoluto. 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. Ligação simbólica pode ser usada apenas como destino o arquivo ou pasta original, visto que apenas contém uma seqüência de texto que é interpretado e seguido pelo sistema operacional para outro arquivo ou diretório.
Symbolic link is supported on most Unix-like (including Linux) operating systems, Windows Vista (see Link simbólico é suportado na maioria dos Unix-like (incluindo Linux) sistemas operativos, o Windows Vista (ver Windows Vista symbolic link, hard link and junction point O Windows Vista vínculo simbólico, hard link e junção ponto ) and to some degree in Windows 2000 and Windows XP. ) E até um certo ponto no Windows 2000 e 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. Embora seja link simbólico que aponta para uma meta, ela opera independentemente do seu alvo (supressão da ligação simbólica não foi afetada), mas permite que programas se comportem como se operam diretamente sobre o arquivo de destino.
So how to create or make a symbolic link? Então, como criar ou fazer uma ligação simbólica? To create a symbolic, use the following command syntax: Para criar uma simbólica, utilize o seguinte comando sintaxe:
ln -s [target directory or file] [symlink shortcut]
For example, to link the /usr/local/lib/example directory to /example, use the following command: Por exemplo, para ligar o / usr / local / lib / exemplo ao diretório / exemplo, utilize o seguinte comando:
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. Depois de criar a ligação simbólica acima, / exemplo irá apontar para / usr / local / lib / exemplo, e quando o usuário muda diretório (CD) para / exemplo, OS shell irá mudá-lo automaticamente para / usr / local / lib / diretório exemplo.
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANTE: Esta é uma máquina página traduzida que é fornecido "como está" sem garantia. Machine translation may be difficult to understand. A tradução automática pode ser difícil de entender. Please refer to Por favor referir-se original English article artigo original Inglês whenever possible. quando possível.
Share and contribute or get technical support and help at Compartilhe e contribuir ou obter assistência técnica e ajudar a My Digital Life Forums Minha vida digital Fóruns .
Related Articles Artigos Relacionados
- Change Group Ownership of Symbolic Links in Unix or Linux Variação do grupo dono links simbólicos em Unix ou Linux
- How to Mount USB Disk Drive in UNIX or Linux Como montar USB Disk Drive em UNIX ou Linux
- Refresh Linux or Unix Path Environmental Variables with rehash Refresh Linux ou Unix Caminho variáveis ambientais com rehash
- How to Change or Spoof MAC Address in Windows XP, Vista, Server 2003/2008, Mac OS X, Unix and Linux Como Alterar ou Spoof MAC Address no Windows XP, Vista, Server 2003/2008, o Mac OS X, Linux e Unix
- Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK Criar Links Simbólicos, Hard Links Directory e Junções em Vista com MKLINK
- Open, Extract and Convert DAA, ISO and BIN Files in Linux with Free PowerISO for Linux Aberto, extrato e converso DAA, ISO e BIN arquivos no Linux com PowerISO Free para Linux
- Find Files that are Modified Today (or Since Certain Time Ago) in Unix Localizar arquivos que estão Modified Hoje (ou Desde Alguns tempo atrás) em Unix
- (Enhance) Concurrent Capable and Big vg Format Volume Group in AIX Unix (Enhance) Concurrent Capazes e Big vg Format Volume Group no AIX Unix
- Create New Table by Selecting Data from Other Tables with CREATE TABLE AS Criar nova tabela, selecionando dados de outros quadros, como criar tabela
- Cheapest Linux Box Ever Linux Caixa cada vez mais baratos

























