linux下tar命令解压到指定的目录和用tar命令打包

linux下tar命令解压到指定的目录和用tar命令打包,第1张

1、linux下tar命令解压到指定的目录

    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

1."linux如何解压zip文件,为您提供linux如何解压zip文件图文信息,打开linux系统,在linux的桌面的空白处右击。 2.在d出的下拉选项里,点击打开终端即可进入命令行。 3.在终端窗口中输入cdzip命令进入zip目录。 4.输入ls命令确认zip文件全称。 5.输入unzip命令解压zip压缩包。 6.出现inflating即表明解压成功。


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/8490737.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-17
下一篇 2023-04-17

发表评论

登录后才能评论

评论列表(0条)

保存