Я пытаюсь сжать папку с помощью команды терминала (см. Ниже)
zip myZip.zip path\ Of\ the\ Folder
Приведенная выше команда, обеспечивающая приведенный ниже результат
моя команда неверна Пожалуйста, помогите, я должен сделать это только с помощью команды терминала.
редактировать
Я также попробовал эти команды, и ни одна из них не работает. (Результаты также приведены)
NO.1
n:~ myUser$ zip -r abc.zip /Users/myUser/Desktop/Assets/img\ for\ seg/
adding: Users/myUser/Desktop/Assets/img for seg/ (stored 0%)
adding: Users/myUser/Desktop/Assets/img for seg/aaaa copy 3.jpg (deflated 21%)
adding: Users/myUser/Desktop/Assets/img for seg/aaaa copy 6.jpg (deflated 21%)
adding: Users/myUser/Desktop/Assets/img for seg/aaaa copy 64.jpg (deflated 21%)
adding: Users/myUser/Desktop/Assets/img for seg/aaaa copy 7.jpg (deflated 21%)
adding: Users/myUser/Desktop/Assets/img for seg/aaaa copy.jpg (deflated 21%)
adding: Users/myUser/Desktop/Assets/img for seg/aaaa mo e.jpg (deflated 21%)
adding: Users/myUser/Desktop/Assets/img for seg/aaaa moved.jpg (deflated 21%)
adding: Users/myUser/Desktop/Assets/img for seg/aaaa.jpg (deflated 21%)
adding: Users/myUser/Desktop/Assets/img for seg/moved aaaa.jpg (deflated 21%)
adding: Users/myUser/Desktop/Assets/img for seg/Screen Shot 2015-12-11 at 1.jpg (deflated 21%)
adding: Users/myUser/Desktop/Assets/img for seg/Screen-Shot-2015-12-11-at-1.17.11-pm_03.png (deflated 19%)
adding: Users/myUser/Desktop/Assets/img for seg/Screen-Shot-2015-12-11-at-1.17.11-pm_05.png (deflated 21%)
adding: Users/myUser/Desktop/Assets/img for seg/Screen-Shot-2015-12-11-at-1.17.11-pm_10.png (deflated 26%)
n:~ myUser$
№ 2
n:~ myUser$ zip myZip.zip /Users/myUser/Desktop/Assets/img\ for\ seg
adding: Users/myUser/Desktop/Assets/img for seg/ (stored 0%)
n:~ myUser$
№ 3
n:~ myUser$ zip myZip.zip -r /Users/myUser/Desktop/Assets/img\ for\ seg
updating: Users/myUser/Desktop/Assets/img for seg/Screen Shot 2015-12-11 at 1.jpg (deflated 21%)
updating: Users/myUser/Desktop/Assets/img for seg/Screen-Shot-2015-12-11-at-1.17.11-pm_03.png (deflated 19%)
updating: Users/myUser/Desktop/Assets/img for seg/Screen-Shot-2015-12-11-at-1.17.11-pm_05.png (deflated 21%)
updating: Users/myUser/Desktop/Assets/img for seg/Screen-Shot-2015-12-11-at-1.17.11-pm_10.png (deflated 26%)
updating: Users/myUser/Desktop/Assets/img for seg/aaaa copy 3.jpg (deflated 21%)
updating: Users/myUser/Desktop/Assets/img for seg/aaaa copy 6.jpg (deflated 21%)
updating: Users/myUser/Desktop/Assets/img for seg/aaaa copy 64.jpg (deflated 21%)
updating: Users/myUser/Desktop/Assets/img for seg/aaaa copy 7.jpg (deflated 21%)
updating: Users/myUser/Desktop/Assets/img for seg/aaaa copy.jpg (deflated 21%)
updating: Users/myUser/Desktop/Assets/img for seg/aaaa mo e.jpg (deflated 21%)
updating: Users/myUser/Desktop/Assets/img for seg/aaaa moved.jpg (deflated 21%)
updating: Users/myUser/Desktop/Assets/img for seg/aaaa.jpg (deflated 21%)
updating: Users/myUser/Desktop/Assets/img for seg/moved aaaa.jpg (deflated 21%)
updating: Users/myUser/Desktop/Assets/img for seg/ (stored 0%)
n:~ myUser$
Редактировать 2: вышеупомянутые команды делают zip, но в zip нет содержимого, которое присутствовало в фактической папке (исходной папке)