-a, --archive
               Preserve  as much as possible of the structure and 
attributes of
               the original files in the copy (but do  not  preserve 
directory
               structure).  Equivalent to -dpPR.


Talvez por isso caro amigo...
Pelo que consta no man aqui no meu linux o -a preserva as permissões mas 
não necessariamente preserva a estrutura de diretórios. e no enunciado 
foi enfática a exigência de subdirectories.




Wilton Paulo escreveu:
> 
> 
> Caros,
> 
>  Which command would copy the whole directory tree, including all 
> subdirectories under /home/foo to /tmp?
> a) mv -cr /home/foo /tmp
> b) cp -a /home/foo /tmp => Este comando copia e ainda preserva os atributos
> c) xcp -s /home/foo /tmp
> d) cp /home/foo /tmp
> e) cp -r /home/foo /tmp => Este comando copia, porem muda atributos para 
> root(ou usuario que executa)
> 
> A resposta correta é "e", mas ainda acho que a "b" também tá certa. Se 
> eu estiver mesmo errado então me digam por que ?
> 
> Att,
> Wilton Paulo
> 
> ------------------------------------------------------------------------
> Everyone is raving about the all-new Yahoo! Mail beta. 
> <http://us.rd.yahoo.com/evt=45083/*http://advision.webevents.yahoo.com/mailbeta>
>  
> 
> 


                
_______________________________________________________ 
Yahoo! Mail - Sempre a melhor opção para você! 
Experimente já e veja as novidades. 
http://br.yahoo.com/mailbeta/tudonovo/
 

Responder a