請問cp指令, 要拷貝link的原本資料 - Linux

Table of Contents

你好, 還是不行呢, 我把檔案列出來

2009-09-09 20:19 qsjiscodec.h -> ../src/3rdparty/tools/qsjiscodec.h
2009-09-09 20:19 qmemorymanager_qws.h -> ../src/kernel/qmemorymanager_qws.h
2009-09-09 20:19 qjpunicode.h -> ../src/3rdparty/tools/qjpunicode.h
2009-09-09 20:19 qgfxvoodoodefs_qws.h -> ../src/kernel/qgfxvoodoodefs_qws.h

這是其中幾個檔案. 他好像都是指到 相對路徑下,

我如果拷貝過去的話, 整個資料夾的檔案好像都指不到原檔案了

-a 也試過,不行


※ 引述《coscell (顧人怨)》之銘言:
: -a
: ※ 引述《clanguage (C語言)》之銘言:
: : 請問一下關於 cp 指令的問題
: : 我有一個資料夾, 資料夾下面全部都是 link, 各指到不同資料夾的不同檔案
: : 但是當我用 cp -r * ../otherDir 之後
: : 檔案全部都失效了,
: : 我希望拷貝過去後這些檔案都還能使用, 是 link 或 standard file 都好
: : 有人知道怎麼操作嗎?
: : 謝謝

--

All Comments

Lucy avatarLucy2009-09-18
拷貝過去後, 還是用相對路徑去指, 所以全部都指不到@@"
Elma avatarElma2009-09-22
man cp 很困難?