The CP command is more commonly used in Linux VPS operations and applications, and can be used to copy files or folders, rename a new file, and copy files to other paths for transfer.
Example usage:
1. Copy the itbulu.com.jpg file from the root
Linux Environment Variables PATH: Configure the command file to PATH , you can run it directly. the echo $PATH command allows you to view path paths:650) this.width=650; "src="
[Email protected] ~]#ls [-aadffhilnrrst] Directory name[Email protected] ~]#ls [--color={never,auto,always}] Directory name[Email protected] ~]#ls [--full-time] Directory nameOptions and Parameters:-a: All the files, together with the hidden files
CP (copy an archive or directory)[Root @ Linux ~] # Cp [-adfilprsu] Destination)[Root @ Linux ~] # Cp [Options] source1 source2 sourc4 .... DirectoryParameters:-A: equivalent to-PDR;-D: if the source file is a link file, copy the link file property
Under Linux, if you want to copy file files to directory dir, you can do this: CP file dirHowever, if a file named files already exists under Dir, the system will always prompt you to overwrite it.This is a good feature that prevents us from
Linux Command: cp command learning and use, linux Command cp Learning
The cp command is used to copy files or directories. It is one of the most common commands in Linux. In general, shell sets an alias. When copying a file under the command line,
CP (copy an archive or directory)[Root @ Linux ~] # Cp [-adfilprsu] Destination)[Root @ Linux ~] # Cp [Options] source1 source2 sourc4 .... DirectoryParameters:-A: equivalent to-PDR;-D: if the source file is a link file, copy the link file property
Linux Command (8): cp command, linux Command cp
The cp command is used to copy files or directories. It is one of the most common commands in Linux. In general, shell sets an alias. When copying a file under the command line, if the target file
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.