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
  •  


A8PicoCart Kit Atari XE XL unocart clone multicart cartridge game picture

A8PicoCart Kit Atari XE XL unocart clone multicart cartridge game

$18.95



Atari Power Cube 800XL, 600XL, 65XE, 130XE  USB-C Power Supply PSU picture

Atari Power Cube 800XL, 600XL, 65XE, 130XE USB-C Power Supply PSU

$11.25



Atari 600 XL Vintage Home Computer - New in Box, Unused picture

Atari 600 XL Vintage Home Computer - New in Box, Unused

$200.00



ATARI XEGS Game System Tested Working CIB Complete in LATE CHILEAN RETAIL box picture

ATARI XEGS Game System Tested Working CIB Complete in LATE CHILEAN RETAIL box

$590.00



A8picoCart Atari 130 / 65 XE 800 / 1200 XL XEGS multicart UnoCart clone game picture

A8picoCart Atari 130 / 65 XE 800 / 1200 XL XEGS multicart UnoCart clone game

$32.95



Vintage Atari 800XL Computer With Original Box  picture

Vintage Atari 800XL Computer With Original Box

$140.00



ATARI 1200XL Case Badges 400/800/815/830/822/800XL/600XL/800XE/xf551/1050/1090 picture

ATARI 1200XL Case Badges 400/800/815/830/822/800XL/600XL/800XE/xf551/1050/1090

$28.31



Atari 410 Program Cassette Recorder Clean Tested for power/4 cassettes/Cover picture

Atari 410 Program Cassette Recorder Clean Tested for power/4 cassettes/Cover

$22.99



TEAM TAP Atari Jaguar Multi Player Adapter NEW In Box picture

TEAM TAP Atari Jaguar Multi Player Adapter NEW In Box

$25.46



Atari 65xe nice condition (800xl compatible) picture

Atari 65xe nice condition (800xl compatible)

$225.00