Linux replicates all files in the specified directory to another directoryCopy all files in the specified directory to another directoryReplication of files and directories is often used. The command for replication under Linux is CP.Suppose the
Linux copies all files in the specified directory to another directoryCopy all files in the specified directory to another directoryThe copying of files and directories is often used. The commands for copying under Linux are CP.Assume that the
Linux copies all files in the specified directory to another directoryCopy all files in the specified directory to another directoryThe copying of files and directories is often used. The commands for copying under Linux are CP.Assume that the
A few common concepts about the Linux directory
PathThe description mechanism of the file location information refers to a path from a directory hierarchy in the tree directory to a file within it, and is divided into relative paths and
To illustrate the original file: Moving target: Step: 1. Find the file that meets the criteria and create the target directory find/root/-maxdepth 5-name ' *.log '-exec echo {} \;|sed "s/\/root\//\/root\/mv2\//g "|sed" s/[^/]*\.log//"|awk ' {System (
Copy commandThe function of this command is to copy the given file or directory to another file or directory, which is as powerful as the copy command under MSDOS.
Syntax: CP [option] source file or directory destination file or directory
"7.1" Directory and Path"7.1.2" directory-related actions
1 Special Directory list:
(1)
2 Directory Operation command, let's talk about a few common processing directory commands bar:
CDS: Transforming Catalogs
PWD: Displaying the current
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 explains how to copy files from one machine to another.
1. Function Description
Scp Is security copy, which is used to copy files or directories from one Linux system to another. Scp uses the SSH protocol to ensure data transmission security.
This chapter mainly describes how to operate and manage the Linux system files and directories, mainly including the switch between directories, the creation and deletion of directories, the creation and deletion of files , file lookup, file content
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.