Polecenie cp
Opcje wykonania cp
w konsoli
Preserve attributes of original files where possible. The same as -dpr.
Back up files that would otherwise be overwritten.
Do not dereference symbolic links; preserve hard-link relationships between source and copy.
Remove existing files in the destination.
Prompt before overwriting destination files. On most systems, this flag is turned off by default except for the root user, who is normally prompted before overwriting files.
Make hard links, not copies, of nondirectories.
Preserve all information, including owner, group, permissions, and timestamps.
Preserve intermediate directories in source. The last argument must be the name of an existing directory. For example, the command:
cp --parents jphekman/book/ch1 newdir
copies the file jphekman/book/ch1 to the file newdir/jphekman/book/ch1, creating intermediate directories as necessary.
Copy directories recursively.
Set suffix to be appended to backup files. This may also be set with the SIMPLE_BACKUP_SUFFIX environment variable. The default is ~. You need to explicitly include a period if you want one before the suffix (for example, specify .bak, not bak).
Make symbolic links instead of copying. Source filenames must be absolute.
Handle files that have "holes" (are defined as a certain size but have less data). always creates a sparse file, auto creates one if the input file is sparse, and never creates a non-sparse file without holes.
Do not copy a file to an existing destination with the same or newer modification time.
Before copying, print the name of each file.
Set the type of backups made. You may also use the VERSION_CONTROL environment variable. The default is existing. Valid arguments are:
t, numbered Always make numbered backups.
nil, existing Make numbered backups of files that already have them; otherwise, make simple backups.
never, simple Always make simple backups.
-x, --one-file-system Ignore subdirectories on other filesystems.
Przykłady cp działanie w Słownik polecenie C
- Przykład CP użycie :
- Jak użyć redundancy check (CRC) checksum for all files ; this is used to ensure that a file was not corrupted during transfer. Read from standard input if the character - is given or no files are given co znaczy.
- Przykład CP użycie :
- Jak użyć filter that handles reverse linefeeds and escape characters, allowing output from tbl or nroff to appear in reasonable form on a terminal. Put half-line characters (e.g., subscripts or superscripts krzyżówka.
- Przykład CP użycie :
- Jak użyć terminal N (that is, switch to /dev/ttyN ). If you have not created /dev/ttyN , it will be created when you use this command. There are keyboard shortcuts for this functionality as well. From a co to jest.
- Przykład CP użycie :
- Jak użyć administration command. Normally started in a system startup file. Execute commands at scheduled times, as specified in users' files in /var/spool/cron . Each file shares its name with the user słownik.
- Przykład CP użycie :
- Jak użyć cdparanoia records Compact Disc audio files as WAV, AIFF, AIFF-C, or raw format files. It uses additional data-verification and sound-improvement algorithms to make the process more reliable and is czym jest.