Easily find issues by searching: #<Issue ID>
Example: #1832
Easily find members by searching in: <username>, <first name> and <last name>.
Example: Search smith, will return results smith and adamsmith
Aqua Data Studio / nhilam |
Follow
827
|
cp | |
Copies files. | |
Synopsis | |
\cp [OPTION ...] [-T] SOURCE DESTINATION \cp [OPTION ...] SOURCE [SOURCE ...] DIRECTORY |
|
Description | |
\cp copies SOURCE to DESTINATION, or multiple SOURCE(s) to DIRECTORY. | |
Options | |
-i Prompt before overwriting. |
|
-n Do not overwrite an existing file. |
|
-p Preserve the last-modified time of the file. |
|
-r Copy directories recursively. |
|
-T Treat DESTINATION as a normal file. |
|
-u Copy only when the source file is newer than the destination file, or when the destination file is missing. |
|
If both -n and -i are specified, -n will take precedence. If both -n and -u are specified, -n will take precedence. |
|
Examples | |
To copy a file \cp /home/tariq/foo.sql /home/tariq/sahil/foo.sql |
|
To copy a directory
\cp /home/tariq/foo /home/tariq/sahil/
|
|
To recursively copy subdirectories , use the -r option: \cp -r /home/tariq/foo /home/tariq/sahil/ |
|
To preserve last modified time of file, use the -p option:
\cp -p /home/tariq/foo.sql /home/tariq/sahil/foo.sql
|
|
To prompt before overwriting an existing file using cp command:
\cp -i /home/tariq/foo.sql /home/tariq/sahil/foo.sql
|
|
To copy only when the source file is newer than destination file, use the -u option
\cp -u /home/tariq/foo.sql /home/tariq/sahil/foo.sql
|
About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017