cp command is used for file directory replication. The cp command can copy one or more source files or directories to a specified destination file or directory. When copying multiple files at a time, the target file parameter must be an existing directory, otherwise an error will occur.
Syntax format
cp [parameter] [source file or directory] copy target cp [options] source dest cp [options] source... directory
Parameter
-a: The effect of this parameter is the same as specifying the "-dpR" parameter. -d: When copying a symbolic link, the target file or directory is also established as a symbolic link and points to the source file or The original file or directory to which the directory is connected -f: Forcibly copy the file or directory, regardless of whether the target file or directory already exists -i: Ask the user before overwriting the existing file -l: Make a hard connection to the source file instead of copying the file - p: Keep the attributes of the source file or directory -R/r: Recursive processing, all files in the specified directory are processed together with the subdirectory -s: establish a symbolic link to the source file instead of copying the file -u: use this After the parameter is only copied when the change time of the source file is changed compared to the target file or when the target file corresponding to the name does not exist, the file-S: when the file is backed up, the file with the specified suffix "SUFFIX" instead of the file Default suffix -b: will overwrite existing file targets before Target file backup -v: Detailed operation of command execution
Example
Copy all files in the current directory to the /tmp directory. The command is as follows:
cp -r .//tmp
System Requirements: Unlimited release, requires PC platform (x86 architecture CPU), Glibc version
Description of Requirement compile and install MySQL, PHP , and Apache to work a. The process o
Use the ps and grep commands to find the zombie process #ps -A -ostat,ppid,pid,cmd | Grep -e ^[Zz]
Because of work and study, you need to use Securecurt to operate Linux (Red Hat Enterprise Linux 5)
Rescue mode after a serious fault in the Linux operating system
UNIX/LINUX Platform Executable File Format Analysis
Linux will unify the rivers and lakes
Question: Why is there no Beijing time zone selection in Beijing?
Linux Shell Script Common Command Manual
Linux interrupts and exceptions Basics
How to use the SOFTETHER server under the Linux operating system
How do I create a logical volume management (LVM) partition using kickstart?
Samsung Camera Interface driver(FIMC)
Windows XP registry application: 8 utility settings
Remove the Windows8.1 Update power button small coup
Retrieve the Linux superuser root password
Open webpage slow play through card white screen windows7 system
Masters don't want to slow down: XP quickly starts the latest tips
Rename the downloaded eMule file
Windows 10 system .NET Framework 3.5 offline installation method
Five tips to make you more aware of FlashFXP
The official version of Win10 Mobile will be launched in December: it will cover more other devices.