
tar zxvf node_modules.tar -C newFile
把根目录下的node_modules.tar 解压到同级目录newFile下,前提要保证newFile这个目录存在。
2、用tar命令打包
tar zcvf node_modules.tar node_modules
将当前目录下的node_modules文件打包到根目录下并命名为node_modules.tar
安装unzip解压缩程序,通常情况下,Linux系统下都自带unzip解压缩程序,如果没有,终端运行如下命令进行安装:sudo apt-get install unzip。 解压file.zip文件,例如直接对扩展名为file.zip文件进行解压,终端运行:unzip file.zip。 解压file.zip文件到指定文件夹例如如果想要将file.zip解压到指定文件夹destination_folder,使用:unzip file.zip -d destination_folder。欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)