View previous topic :: View next topic |
Author |
Message |
JoHo42 l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/851234420408e4e4fcac30.jpg)
Joined: 14 Feb 2004 Posts: 956 Location: Germany
|
Posted: Tue Aug 28, 2007 2:02 pm Post subject: Verzeichnis mit symlink kopieren |
|
|
Hi Leute,
ich möchte gerne ein Verzeichnis kopieren.
In diesem Verzeichnis sind verschiedene Symlinks enthalten.
Allerdings möchte ich nicht die Links kopieren, sondern die Dateien auf denen diese Links verweisen.
Sonst muß ich mir das nachher alles zusammensuchen.
Gibt es bei cp keinen Parameter für?
Am Besten ist, wenn dies alles aus der Konsole läuft.
Gruß Jörg |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Anarcho Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1030393113423afb9086043.jpg)
Joined: 06 Jun 2004 Posts: 2970 Location: Germany
|
Posted: Tue Aug 28, 2007 2:29 pm Post subject: |
|
|
RTFM
manpage zu cp:
Code: | -L, --dereference
Folge symbolischen Verknüpfungen immer. |
_________________ ...it's only Rock'n'Roll, but I like it! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
JoHo42 l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/851234420408e4e4fcac30.jpg)
Joined: 14 Feb 2004 Posts: 956 Location: Germany
|
Posted: Wed Aug 29, 2007 7:45 am Post subject: |
|
|
Hi Anarcho,
danke für die schnelle Antwort.
Jetzt nochmal schnelle frage, gibt es so ein Kommando auch bei tar?
So das ich die Symlinks aus dem /etc Verzeichnis auch direkt mit einpacken kann?
Gruß Jörg |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
schachti Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/17240378884464519a52d60.jpg)
Joined: 28 Jul 2003 Posts: 3765 Location: Gifhorn, Germany
|
Posted: Wed Aug 29, 2007 7:52 am Post subject: |
|
|
Wie anarcho bereits schrieb: RTFM!
Code: |
-h, --dereference
don't dump symlinks; dump the files they point to
|
_________________ Never argue with an idiot. He brings you down to his level, then beats you with experience.
How-To: Daten verschlüsselt auf DVD speichern. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Anarcho Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1030393113423afb9086043.jpg)
Joined: 06 Jun 2004 Posts: 2970 Location: Germany
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
schachti Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/17240378884464519a52d60.jpg)
Joined: 28 Jul 2003 Posts: 3765 Location: Gifhorn, Germany
|
Posted: Wed Aug 29, 2007 8:39 am Post subject: |
|
|
Und gemeint ist nicht "Reboot the Freaking Machine", sondern dies. ![Wink :wink:](images/smiles/icon_wink.gif) _________________ Never argue with an idiot. He brings you down to his level, then beats you with experience.
How-To: Daten verschlüsselt auf DVD speichern. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|