|
Oi,
Fiquei intrigado com a questão pq achava que a "B"
estava certa mesmo, mas a "D" tb parece ok, aí fui testar. O resultado que
vi é que:
* com o comando da "D", se o diretório test já
existir onde será copiado, ele copia como subdiretório ( /root/test/test
) ; se não existir copia criando um novo diretório test ( /root/test
);
* com o comando da "B", cria o diretório sempre em
/root (neste exemplo) e, se já houver e os arquivos abaixo do diretório forem
repetidos, pergunta se deve sobrescrever os arquivos.
Veja só:
[EMAIL PROTECTED] /]# cd /tmp/ [EMAIL PROTECTED] tmp]#
ls test/ a [EMAIL PROTECTED] tmp]# cp -r ./test/ ~ [EMAIL PROTECTED] tmp]# ls
/root/test a [EMAIL PROTECTED] tmp]# cp -r ./test/ ~ cp: sobrescrever
`/root/test/a'? y [EMAIL PROTECTED] tmp]# ls /root/test a [EMAIL PROTECTED]
tmp]# rm /root/test -rf [EMAIL PROTECTED] tmp]# cp -r /tmp/test/
/root/test [EMAIL PROTECTED] tmp]# ls /root/test a [EMAIL PROTECTED] tmp]# cp
-r /tmp/test/ /root/test [EMAIL PROTECTED] tmp]# ls /root/test a
test [EMAIL PROTECTED] tmp]#
Abraço
André
----- Original Message -----
Sent: Wednesday, October 18, 2006 10:17
AM
Subject: Re: [lpi] Sites de
simulados.
Olá lista, fui tentar fazer o simulado indicado pelo Emerson,
fiquei com duvida nesta questão. A resposta correta deveria se a letra D?
Mas a correta marcada no site é a letra B. Alguem sabe
pq?
Obrigado Assume that your current working directory is '/tmp'
and your home directory is '/home/jane'. Which of the below commands will
copy all the content of '/tmp/test/' to a 'test' subdirectory of your home
directory?
*
A. cp -r test/* /home/jane
*
B. cp -r ./test
~
*
C. cp -r
~/test .
*
D.
cp -r /tmp/test /home/jane/test
Emerson Dorow escreveu: >
Olá Pessoal, >
> Achei mais um site
bacana com perguntas e respostas simulando > a prova da LPI, uma dica
que me deram e é interessante, é utilizar os > simulados para estudar
sobre os assuntos das perguntas. > > http://gnosis.cx/publish/programming/exam102.html >
> http://gnosis.cx/publish/programming/exam101.html >
> Abraço a todos, > > Emerson > >
------------------------------------------------------------------------ >
O Yahoo! está de cara nova. Venha conferir > <http://us.rd.yahoo.com/mail/br/tagline/spirit/*http://br.yahoo.com>!
>
_______________________________________________________ Novidade no
Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu
aparelho agora! http://br.mobile.yahoo.com/mailalertas/
__________ NOD32 1.1808
(20061017) Information __________
This message was checked by NOD32
antivirus system. http://www.eset.com
__________ NOD32
1.1808 (20061017) Information __________
This message was checked by
NOD32 antivirus system. http://www.eset.com
No virus found in this incoming message. Checked by AVG Free
Edition. Version: 7.1.407 / Virus Database: 268.13.3/474 - Release Date:
10/13/aaaa
__________ NOD32 1.1808 (20061017) Information
__________
This message was checked by NOD32 antivirus
system. http://www.eset.com
__._,_.___
| Yahoo! Grupos, um serviço oferecido por: |
PUBLICIDADE
|
|
Links do Yahoo! Grupos
__,_._,___
|