红联Linux门户
Linux帮助

cp命令

发布时间:2007-08-02 15:21:59来源:红联作者:comes
[root@localhost ~]# ls /mnt/temp
1.txt 2.txt 3.txt
[root@localhost ~]# ls /mnt/temps
[root@localhost ~]# cp /mnt/temp/1.txt /mnt/temps/a.txt
cp: 略过目录 “/mnt/temp/1.txt”
[root@localhost ~]# cp -a /mnt/temp /mnt/temps
[root@localhost ~]# ls /mnt/temps
temp
[root@localhost ~]# cp -a /mnt/temp/ /mnt/temps/
[root@localhost ~]# ls /mnt/temps/
temp
[root@localhost ~]#
我想把/mnt/temp/1.txt 拷贝到/mnt/temps/下,并命名为a.txt 终端提示cp: 略过目“/mnt/temp/1.txt”
我使用cp -a 命令想把/mnt/temp下的所有文件都拷贝到 /mnt/temps
可是得出的结果是把/mnt/下的temp 文件价 拷贝到了 /mnt/temps/ 下
请指点
文章评论

共有 0 条评论