mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
16 lines
482 B
Markdown
16 lines
482 B
Markdown
# ln
|
|
|
|
> Crea enlaces a archivos y directorios.
|
|
> Más información: <https://www.gnu.org/software/coreutils/ln>.
|
|
|
|
- Crea un enlace simbólico a un archivo o directorio:
|
|
|
|
`ln -s {{/ruta/al/archivo_o_directorio}} {{ruta/al/enlace_simbólico}}`
|
|
|
|
- Sobrescribe un enlace simbólico existente para que apunte a un archivo distinto:
|
|
|
|
`ln -sf {{/ruta/al/nuevo_archivo}} {{ruta/al/enlace_simbólico}}`
|
|
|
|
- Crea un enlace duro a un archivo:
|
|
|
|
`ln {{/ruta/al/archivo}} {{ruta/al/enlace_duro}}`
|