como compactar um diretório com seus arquivos usando o Terminal no Mac

0

Estou tentando compactar uma pasta com arquivos no terminal usando

zip -r myzipfile.zip myDir

mas isso não inclui os arquivos O que devo fazer?

    
por Acs90 15.11.2015 / 11:02

1 resposta

0

You can just use *; there is no need for .. File extensions are not special on Unix. * matches zero or more characters—including a dot. So it matches foo.png, because that's zero or more characters (seven, to be exact).

Note that * by default doesn't match files beginning with a dot (neither does .). This is often what you want. If not, in bash, if you shopt -s dotglob it will (but will still exclude . and ..). Other shells have different ways (or none at all) of including dotfiles.

link

    
por 15.11.2015 / 12:00

Tags