Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Verzeichnis mit symlink kopieren
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
JoHo42
l33t
l33t


Joined: 14 Feb 2004
Posts: 956
Location: Germany

PostPosted: Tue Aug 28, 2007 2:02 pm    Post subject: Verzeichnis mit symlink kopieren Reply with quote

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
View user's profile Send private message
Anarcho
Advocate
Advocate


Joined: 06 Jun 2004
Posts: 2970
Location: Germany

PostPosted: Tue Aug 28, 2007 2:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
JoHo42
l33t
l33t


Joined: 14 Feb 2004
Posts: 956
Location: Germany

PostPosted: Wed Aug 29, 2007 7:45 am    Post subject: Reply with quote

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
View user's profile Send private message
schachti
Advocate
Advocate


Joined: 28 Jul 2003
Posts: 3765
Location: Gifhorn, Germany

PostPosted: Wed Aug 29, 2007 7:52 am    Post subject: Reply with quote

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
View user's profile Send private message
Anarcho
Advocate
Advocate


Joined: 06 Jun 2004
Posts: 2970
Location: Germany

PostPosted: Wed Aug 29, 2007 8:36 am    Post subject: Reply with quote

Nur für den Fall:

http://acronyms.thefreedictionary.com/RTFM
_________________
...it's only Rock'n'Roll, but I like it!
Back to top
View user's profile Send private message
schachti
Advocate
Advocate


Joined: 28 Jul 2003
Posts: 3765
Location: Gifhorn, Germany

PostPosted: Wed Aug 29, 2007 8:39 am    Post subject: Reply with quote

Anarcho wrote:
Nur für den Fall:

http://acronyms.thefreedictionary.com/RTFM


Und gemeint ist nicht "Reboot the Freaking Machine", sondern dies. :wink:
_________________
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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum