Results 1 to 2 of 2

Thread: Command-line syntax : a question about cp --parents

  1. #1
    Member registered user
    Join Date
    Dec 2006
    Posts
    49

    Command-line syntax : a question about cp --parents

    I cannot find (and don't know whether there is) a Forum specific to command-line syntax questions, so I'll post it here. Please put me right if I want to go elsewhere (and I apologise for wasting your time). Here is the question. Thank you!

    I can use
    cp -vr --parents /a/b/c/d /x/y
    to create a directory /x/y/a/b/c/d containing everything at d and everything under d.

    But how could I create a directory x/y/b/c/d (ie omitting a)? I could MOVE to /a/ and then use
    cp -vr --parents b/c/d /x/y
    but I really don't want to do the MOVE (and can think of circumstances where I might not be able to).

    I'm really looking for something exactly similar to the
    tar -C DIRNAME
    switch that allows one to make a virtual move to the directory DIRNAME before commencing the tar operation.

    Thank you!

    Fergus

    PS Again, sorry - if there is a Forum under Knoppix.NET (or for that matter elsewhere) specific to questions about command-line syntax, please point me to it ...

  2. #2
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    This is not Knoppix-specific at all? What about trying sites like linuxquestions.org?
    Tip: Check out rsync whenever you feel you approach the capabilities of cp.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


CMD RAMLINK FOR COMMODORE 64 128 -  picture

CMD RAMLINK FOR COMMODORE 64 128 -

$1000.00



Commodore Vic-20 Matching Box Games Power Supply Modem And More Tested Works picture

Commodore Vic-20 Matching Box Games Power Supply Modem And More Tested Works

$149.00



commodore 64 computer picture

commodore 64 computer

$95.00



Commodore VIC-20 Personal Color Computer In Box AS-IS/For Parts or repair picture

Commodore VIC-20 Personal Color Computer In Box AS-IS/For Parts or repair

$69.99



pi1541 Disk Emulator for Commodore -  picture

pi1541 Disk Emulator for Commodore -

$38.95



Commodore 64/128 AV Adaptor - S-Video Composite & 2ch Audio L/R picture

Commodore 64/128 AV Adaptor - S-Video Composite & 2ch Audio L/R

$16.41



 Pi1541 Zero with Epyx Fastload Hat, Case & 16gb SD for Commodore 64 and 128  picture

Pi1541 Zero with Epyx Fastload Hat, Case & 16gb SD for Commodore 64 and 128

$74.99



Commodore 1350 Mouse 1985 Untested in Box picture

Commodore 1350 Mouse 1985 Untested in Box

$28.00



Commodore Floppy Disk Drive Model 1541 picture

Commodore Floppy Disk Drive Model 1541

$52.00



DEFECT  Commodore 64 64C Computer W/ Power Supply, Mouse, Joysticks, 7 Games.... picture

DEFECT Commodore 64 64C Computer W/ Power Supply, Mouse, Joysticks, 7 Games....

$199.99