Red Hat NETSCAPE MANAGEMENT SYSTEM 6.0 - CUSTOMIZATION Manual de usuario Pagina 279

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 300
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 278
17.5 Copying, Moving and Renaming Files and Directories 267
-f force. Copies without prompting you for conrmation that the le should be overwritten.
Unless youre sure you want to force the copy, you probably dont want to make friends with
this option right now.
-v - verbose. Will show the progress of the les being copied.
Just by using cp alone, you wont see much when the command is executed. Using an option, such
as -i, can make the process a little more useful, because if you want to copy a le to a location that
already has a le with the same name, youll be asked rst if you really want to overwrite meaning
replace the le thats already there.
Tip: Remember that among your options is -f (force), which can overwrite les with-
out asking you if youre certain. Make sure, when you use the force option, that you
really want to overwrite a le.
Now that we have the le sneakers.txt in the tigger directory, letsusecp -i to copy the le
again to the same location.
[billy@localhost billy]$ cp -i sneakers.txt tigger
cp: overwrite ’tigger/sneakers.txt’?
If we want to overwrite the le thats already there, we can press
Y and then Enter . If we think we
dont want to overwrite the le, nows the time to press
N and Enter .
17.5.2 Moving Files
To move les, use the mv command (man mv), which is similar to the cp command, except that with
mv the le is physically moved from one place to another, instead of being duplicated, as with cp.
Common options available with mv include:
-i interactive. Will prompt you if the le youve selected will overwrite an existing le in the
destination directory. This is a good option, because like the -i option in cp,youll be given
the chance to make sure you want to replace an existing le.
-f force. Overrides the interactive mode and moves without prompting. Unless you know
what youre doing, this option doesnt play nice; be very careful about using it until you be-
come more comfortable with your system.
-v verbose. Shows a list of the les being moved.
Vista de pagina 278
1 2 ... 274 275 276 277 278 279 280 281 282 283 284 ... 299 300

Comentarios a estos manuales

Sin comentarios