You do this with the cp option.
为此可以使用cp选项。
Copy files with the cp command.
使用cp命令来复制文件。
Using tar and cp to copy data to a new filesystem
使用tar和cp将数据复制到新的文件系统
The tar tool offers a number of benefits over cp.
与cp相比,tar工具提供了许多的好处。
SCP is almost as easy to use as cp. Here's an example.
scp与cp一样很容易使用。
scp is exceedingly useful, because it mimics cp so closely.
scp非常有用,因为它与cp非常接近。
Much like cp, rsync copies files from a source to a destination.
与cp一样,rsync也把文件从源复制到目标。
This, therefore, is not equivalent to the system specified cp command in UNIX.
因此,此函数与UNIX中系统指定的cp命令并不等效。
This is yet another difference that this API sports compared to the cp command.
这是此api与cp命令相比的另一个差别。
Using cplv is quite slower than using cp or tar when dealing with smaller filesystems.
在处理小的文件系统时,使用cplv比使用cp或tar慢得多。
Whether you use cp or tar, you should always verify the copy has completed successfully.
无论使用cp还是tar,您始终都应该验证复制过程是否成功完成。
Copying a filesystem data to a different volume group can be done using tar, cp, or CPLV.
可以使用tar、cp或cplv将文件系统数据复制到另一个卷组。
You can use any OS commands that you want to move the files (for example cp/rm, mv, tar).
您可以使用选择的任何OS命令移动这些文件(如cp/rm、mv 和tar)。
Listing 1. cp command — copying one directory to a new directory with a different name.
清单1. cp命令—将一个目录复制到具有不同名称的新目录。
This is the time to make a copy of all RSS chunks using OS commands such as cp, tar, gzip, etc.
现在正是使用操作系统命令复制所有RSS 数据块(比如cp、tar、gzip等)的好时候。
Michael Haardt, original author of YAZE, also has written cpmtools, which accesses CP/M file systems.
Michael Haardt,YAZE的原作者,还编写了用于访问CP/M文件系统的cpmtools。
To work around these errors, you can run the EJBDeploy tool with the -cp argument and specify the classpath.
要处理这些这些错误,您可以用 -cp参数运行EJBDeploy工具并指定类路径。
Let's look at three ways we could copy the application files across to another filesystem, using cp, tar, and CPLV.
我们来看一下使用cp、tar和cplv将应用程序文件复制到另一个文件系统的三种方法。
There are many different methods available, but the two primary solutions are to use the basic cp tool or the tar tool.
有许多种不同的方法可以完成这个任务,但是主要的两种解决方案是使用基本的cp工具或tar 工具。
Some UNIX variants and the GNU cp tool support the -r option that correctly copies named pipes, links, and other files.
有些UNIX变种和GNUcp工具支持- r选项,使用该选项可以正确地复制命名管道、链接和其他的文件。
If you changed one file of about 10mb in size using cp or tar, you would have to recopy the whole 100gb of files all over again.
如果修改了一个10MB的文件,在使用cp或tar进行同步时,就必须重新复制所有100gb文件。
Type "cp cats dogs," for instance, and you'll get an exact copy of "cats" named "dogs"; the file "cats" will still be there too.
输入“cpcatsdogs”,你会得到一个命名为“dogs”的“cats”文件的副本;文件“cats”仍然存在。
The first thing to do is unmount both filesystems. Unlike tar and cp, CPLV cannot be carried out with the filesystems online.
首先要做的是卸载这两个文件系统。
rcp, short for "remote copy," improved on FTP, because it mimicked the traditional cp utility but copied files from machine to machine.
rcp(“remotecopy” 的简写)改进了FTP,它具有与传统cp实用程序相似的功能,但是它在机器之间复制文件。
The standard cp command is capable of copying entire directory trees if you use the -r command-line option to recurse into subdirectories.
如果您使用-r命令行选项递归到其子目录中,标准的cp命令可用于复制整个目录树。
If you're a developer and use multiple systems for your work, SSHFS makes local commands-think cp, make, and others-operate on remote files.
如果您是使用多个系统的开发人员,SSHFS让您能够用本地命令—比如cp、make等—操作远程文件。
Although the cp command is not a true synchronizing command, it is probably the easiest method of copying files from one location to another.
尽管cp命令并不是真正的同步命令,但它可能是在两个位置之间复制文件的最简单方法。
You can use the -p option to preserve the ownership, permissions, and times for each file and directory you copy: $ cp -pr source destination.
可以使用-p选项保留复制的每个文件和目录的所有者、权限和时间:$cp -pr source destination。
The cp tool supports a recursive copying option (-r) that copies all the files, directories, and the files within those directories to the destination.
cp工具提供了一个递归复制选项(- r),使用该选项可以将所有的文件、目录以及这些目录中的文件全部复制到目标。
In general, the names you may use follow the same rules as for copying with cp; you can rename a single file or move a set of files into a new directory.
一般来说,您使用的名称将遵守与cp相同的规则;您可以重命名某个文件或将一组文件移动到一个新目录中。
应用推荐