cp: missing destination file operand after是什么意思?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
biaozhi0000
帖子: 11
注册时间: 2011-12-10 22:06

cp: missing destination file operand after是什么意思?

#1

帖子 biaozhi0000 » 2011-12-10 22:10

初学者,当我执行:
root@owen-desktop:~# cp /home/qq/medici_install

总是提示:
cp: missing destination file operand after `/home/qq/medici_install'
Try `cp --help' for more information.

求高手指教 :em01
头像
枫叶饭团
帖子: 14683
注册时间: 2010-06-16 1:05
系统: Mac OS X
来自: Tencent
联系:

Re: cp: missing destination file operand after是什么意思?

#2

帖子 枫叶饭团 » 2011-12-10 22:15

你要把它复制到哪里啊!
cp 文件 目录
你的目录呢??
biaozhi0000
帖子: 11
注册时间: 2011-12-10 22:06

Re: cp: missing destination file operand after是什么意思?

#3

帖子 biaozhi0000 » 2011-12-10 22:22

感谢 枫叶饭团, 你的回复,我刚入手ubuntu,因要安装一个软件,按照教程如下,能否帮我看看我要如何做么?

1.把medici_install复制到home/qq下

2.终端输入:cp /home/qq/medici_install

:./medici_install
头像
枫叶饭团
帖子: 14683
注册时间: 2010-06-16 1:05
系统: Mac OS X
来自: Tencent
联系:

Re: cp: missing destination file operand after是什么意思?

#4

帖子 枫叶饭团 » 2011-12-10 22:25

应该是这样子的。。。
首先确定medici_install文件在哪个目录
然后cd 目录 进入目录
再运行

代码: 全选

cp medici_install  /home/qq/
cd /home/qq
./medici_install
头像
懒蜗牛Gentoo
论坛版主
帖子: 7362
注册时间: 2007-03-02 17:36
系统: Linux Mint

Re: cp: missing destination file operand after是什么意思?

#5

帖子 懒蜗牛Gentoo » 2011-12-10 22:30

先去补习吧……
1.人家让你把medici_install复制到home/qq下,那么,首先你知道medici_install这个东西在哪么?如果知道的话,直接从图形界面拖过去就行了。如果要用命令的话,格式如下:

代码: 全选

cp /<medici_install所在的路径>/medici_install /home/qq
2.别着急执行上面一句,因为其实不太可能有/home/qq/这个目录,我想你看的教程大概的意思是放到/home/<你的用户名>/qq目录下
3.要么是你看错了,要么你看到这个教程是火星人写的……
虽然世上没有完美的东西,但这并不影响我们追求完美,因为只有偏执狂才TMD能成功。
10.04新手入门——笨兔兔讲述自己的故事
biaozhi0000
帖子: 11
注册时间: 2011-12-10 22:06

Re: cp: missing destination file operand after是什么意思?

#6

帖子 biaozhi0000 » 2011-12-10 22:31

我在home下新建了一个qq目录,然后把medici_install这个文件粘贴到了qq里了,我这样处理对么?
头像
枫叶饭团
帖子: 14683
注册时间: 2010-06-16 1:05
系统: Mac OS X
来自: Tencent
联系:

Re: cp: missing destination file operand after是什么意思?

#7

帖子 枫叶饭团 » 2011-12-10 22:32

biaozhi0000 写了:我在home下新建了一个qq目录,然后把medici_install这个文件粘贴到了qq里了,我这样处理对么?
一样的效果没问题。再点开属性,权限。。在运行上打勾。。。
然后双击,在终端中运行或者直接运行试试
biaozhi0000
帖子: 11
注册时间: 2011-12-10 22:06

Re: cp: missing destination file operand after是什么意思?

#8

帖子 biaozhi0000 » 2011-12-10 22:44

我在终端中运行,出现如下对话,当我点“回车”的时候,终端就一闪后消失了。


Please enter the Synopsys TCAD directory to use for installation, or
press <return> for /usr/tcad.
</usr/tcad>
头像
枫叶饭团
帖子: 14683
注册时间: 2010-06-16 1:05
系统: Mac OS X
来自: Tencent
联系:

Re: cp: missing destination file operand after是什么意思?

#9

帖子 枫叶饭团 » 2011-12-10 22:46

这个明显是要root权限安装的,所以你只能这样子。打开终端运行

代码: 全选

cd /home/qq
sudo ./medici_install
另外,说说这是神马奇芭软件啊
biaozhi0000
帖子: 11
注册时间: 2011-12-10 22:06

Re: cp: missing destination file operand after是什么意思?

#10

帖子 biaozhi0000 » 2011-12-10 22:51

软件名字是medici,用来做模拟的,半导体器件模拟,很惭愧,我昨晚安装ubuntu到凌晨3点才搞定VM 到ubuntu的安装,现在是一步一个障碍,真的多学学这方面的知识,看到你回答的很轻松,真羡慕你。
biaozhi0000
帖子: 11
注册时间: 2011-12-10 22:06

Re: cp: missing destination file operand after是什么意思?

#11

帖子 biaozhi0000 » 2011-12-10 22:55

我按照您的方法,提示 command not found,是我哪里写错了额?

root@owen-desktop:~# cd /home/qq
root@owen-desktop:/home/qq# sudo ./medici_install
sudo: ./medici_install: command not found
biaozhi0000
帖子: 11
注册时间: 2011-12-10 22:06

Re: cp: missing destination file operand after是什么意思?

#12

帖子 biaozhi0000 » 2011-12-10 23:05

天啊,又是问题,还请您能帮助

Extracting product...
tail: cannot open `+124' for reading: No such file or directory

gzip: tmptarfile.tar.Z: not in gzip format
tar: This does not look like a tar archive
tar: Error exit delayed from previous errors

ERROR: extract error, installation cannot proceed.
头像
枫叶饭团
帖子: 14683
注册时间: 2010-06-16 1:05
系统: Mac OS X
来自: Tencent
联系:

Re: cp: missing destination file operand after是什么意思?

#13

帖子 枫叶饭团 » 2011-12-10 23:23

代码: 全选

sudo export _POSIX2_VERSION=199209。 
搜了下。。。
biaozhi0000
帖子: 11
注册时间: 2011-12-10 22:06

Re: cp: missing destination file operand after是什么意思?

#14

帖子 biaozhi0000 » 2011-12-10 23:34

厉害厉害,佩服佩服,按照你给的命令问题解决了。
回复