Redian新闻
>
有没有cp或ftp所有文件和子目录里的文件的命令?
avatar
有没有cp或ftp所有文件和子目录里的文件的命令?# Unix - 噫吁兮,危乎高哉
w*k
1
I only know cp *.* or mput*.* to copy multiple files, but
they can not copy the files in subdirectory for you.
is there any command which can copy all files( files in subdirectory also)?
Thanks!!
avatar
c*l
2
cp -R dirname

【在 w**k 的大作中提到】
: I only know cp *.* or mput*.* to copy multiple files, but
: they can not copy the files in subdirectory for you.
: is there any command which can copy all files( files in subdirectory also)?
: Thanks!!

avatar
w*k
3
ftp 也可以这么用吗?谢谢!!!

【在 c********l 的大作中提到】
: cp -R dirname
avatar
d*c
4
cp -R

【在 w**k 的大作中提到】
: I only know cp *.* or mput*.* to copy multiple files, but
: they can not copy the files in subdirectory for you.
: is there any command which can copy all files( files in subdirectory also)?
: Thanks!!

avatar
o*e
5
It depends on what OS you are using,
For Linux, you can use lftp, //mirror
For FreeBSD, the ftp can fetch subdirectory. And you can build lftp package
in /usr/ports :)

【在 w**k 的大作中提到】
: ftp 也可以这么用吗?谢谢!!!
avatar
g*g
6
try scp -r dir [email protected]_station:destination_dir

【在 d***c 的大作中提到】
: cp -R
avatar
n*t
7
also)?
sftp
avatar
q*e
8
cp -r directory
not sure whether ftp can copy directory, you can use a shell script to do this
for ftp.

【在 n****t 的大作中提到】
: also)?
: sftp

avatar
w*k
9
Thanks.
but how to use shell script?

【在 q***e 的大作中提到】
: cp -r directory
: not sure whether ftp can copy directory, you can use a shell script to do this
: for ftp.

avatar
a*y
10
you can tar the dir first.

【在 w**k 的大作中提到】
: Thanks.
: but how to use shell script?

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。