Mac解压命令之不解压__MACOSX相关文件
2015-07-26 12:36
1336 查看
当我们在Mac系统压缩时,系统会给你默认放一个__MACOSX目录,如果你用系统直接解压不会出现这个目录,但是如果你用命令或者在win上解压,这个目录就显现出来了。
所以这里说下用命令解压时不解压__MACOSX目录的方法。解压命令为:
这样解压后就不会生成 __MACOSX目录了。
博客原文地址:/article/3665273.html
PS.附上zip和unzip相关参数及解释:
转载请注明出处/article/3665273.html
所以这里说下用命令解压时不解压__MACOSX目录的方法。解压命令为:
[code]unzip shell.zip -x __MACOSX/*
这样解压后就不会生成 __MACOSX目录了。
博客原文地址:/article/3665273.html
PS.附上zip和unzip相关参数及解释:
[code]UnZip 5.52 of 28 February 2005, by Info-ZIP. Maintained by C. Spieler. Send bug reports using http://www.info-zip.org/zip-bug.html; see README for details. Usage: unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir] Default action is to extract files in list, except those in xlist, to exdir; file[.zip] may be a wildcard. -Z => ZipInfo mode ("unzip -Z" for usage). -p extract files to pipe, no messages -l list files (short format) -f freshen existing files, create none -t test compressed archive data -u update files, create if necessary -z display archive comment -x exclude files that follow (in xlist) -d extract files into exdir modifiers: -q quiet mode (-qq => quieter) -n never overwrite existing files -a auto-convert any text files -o overwrite files WITHOUT prompting -aa treat ALL files as text -j junk paths (do not make directories) -v be verbose/print version info -C match filenames case-insensitively -L make (some) names lowercase -X restore UID/GID info -V retain VMS version numbers -K keep setuid/setgid/tacky permissions -M pipe through "more" pager Examples (see unzip.txt for more info): unzip data1 -x joe => extract all files except joe from zipfile data1.zip unzip -p foo | more => send contents of foo.zip via pipe into program more unzip -fo foo ReadMe => quietly replace existing ReadMe if archive file newer
转载请注明出处/article/3665273.html
相关文章推荐
- Hidden String(模拟)
- QT实现一个简单的计算器
- zoj2481 Unique Ascending Array
- ICMP报文格式详解
- 1059. Prime Factors (25)
- S5PV210开发系列七_Nand驱动实现
- 【Linux C 多线程编程】互斥锁与条件变量
- 1059. Prime Factors (25)
- 头尾式动画
- 弹框 IOS 7 IOS 8
- QQList列表功能实现
- Linux下使用Python捕获键盘输入
- 外观模式
- lamp源码安装
- Android+NDK+OpenGLES开发环境配置
- 最小二乘回归树生成算法
- ListenableFuture in Guava
- ecshop 资料整理
- cookie与session的区别
- 暑假集训-合训第二场