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
  •  


Vintage Jim Henson Interactive Muppets Reading And Phonics CD-Rom 1994 NOS picture

Vintage Jim Henson Interactive Muppets Reading And Phonics CD-Rom 1994 NOS

$24.99



Vintage MICROSOFT 13340 BALLPOINT SERIAL MOUSE C3KB WITH BRACKET *FREE SHIPPING picture

Vintage MICROSOFT 13340 BALLPOINT SERIAL MOUSE C3KB WITH BRACKET *FREE SHIPPING

$24.99



Rare Vintage Adesso Powermouse For Older Mac picture

Rare Vintage Adesso Powermouse For Older Mac

$39.99



Vintage Apple Computer Brochure picture

Vintage Apple Computer Brochure

$10.00



BlueSCSI V2 WiFi (Desktop) Modern Storage for Vintage Computers Latest Model picture

BlueSCSI V2 WiFi (Desktop) Modern Storage for Vintage Computers Latest Model

$53.50



Vintage AST 202377-001 J Motherboard (UNTESTED) picture

Vintage AST 202377-001 J Motherboard (UNTESTED)

$75.00



HP Pavilion 128GB Intel Core 2 Duo 1.86GHz 1GB Vintage XP Media Center Desktop picture

HP Pavilion 128GB Intel Core 2 Duo 1.86GHz 1GB Vintage XP Media Center Desktop

$60.00



Vintage IBM Flowcharting Template / News 3X/400 / AS/400 Command Cross Ref picture

Vintage IBM Flowcharting Template / News 3X/400 / AS/400 Command Cross Ref

$20.00



4 Vintage Cincinnati Milacron Memory Modules for Collection picture

4 Vintage Cincinnati Milacron Memory Modules for Collection

$169.99



Epson MBM-2095-E Vintage Monochrome Monitor (Does not Turn On) picture

Epson MBM-2095-E Vintage Monochrome Monitor (Does not Turn On)

$128.99