Answers:
简单:输入终端
cp /PATH1/file [file2 file3 ...] /PATH2/[newfilename or noting to use the same name]
以及有关cp
使用的更多信息man cp
mv /PATH1/file /PATH2/[newfilename or noting to use the same name]
以及有关mv
使用的更多信息man mv
mv
和cp
? copy
和move
didn`t工作?
嗨,我们来看一个实际的例子:
1. Copy
raja@badfox:~/Folder$ mkdir copy
raja@badfox:~/Folder$ mkdir move
raja@badfox:~/Folder$ touch file1 file2 file3 file4
raja@badfox:~/Folder$ cp file1 copy
raja@badfox:~/Folder$ ls copy
file1
2. Move
raja@badfox:~/Folder$ ls
copy file1 file2 file3 file4 move
raja@badfox:~/Folder$ mv file2 move
raja@badfox:~/Folder$ ls move
file2
raja@badfox:~/Folder$ ls
copy file1 file3 file4 move
3. Rename
raja@badfox:~/Folder$ mv file3 file2
raja@badfox:~/Folder$ ls
copy file1 file2 file4 move
raja@badfox:~/Folder$