linux copiar enlace simbólico [cerrado]
¿Cómo copio un enlace simbólico de un directorio a otro?
ls -ls
file1.txt
file2.txt
files -> /mnt/iscsi-nfs-share/faulttracker-files
Lo que estoy buscando hacer es copiar el enlace simbólico de archivos en otro directorio?
cp files /var/copylinktohere/
Los resultados anteriores en cp: omitiendo el directorio 'files'
23
1 answers
Utilice la opción -d
:
cp -d files /var/copylinktohere/
De man cp
:
-d same as --no-dereference --preserve=link
--no-dereference
never follow symbolic links
43
Author: dogbane,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-04-26 09:51:32
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-04-26 09:51:32