松垮垮 松垮垮
首页
  • GPU并行编程
  • 图形学
  • 归并算法
  • 计算机视觉
  • css
  • html
  • JavaScript
  • vue
  • 压缩命令
  • cmdline
  • Docker
  • ftrace跟踪技术
  • gcov代码覆盖率测试
  • GDB
  • git
  • kgdb
  • linux操作
  • markdown
  • systemtap
  • valgrind
  • 设计模式
  • 分布式
  • 操作系统
  • 数据库
  • 服务器
  • 网络
  • C++
  • c语言
  • go
  • JSON
  • Makefile
  • matlab
  • OpenGL
  • python
  • shell
  • 正则表达式
  • 汇编
  • GPU并行编程
  • mysql
  • nginx
  • redis
  • 网络
  • 计算机视觉
  • 进程管理
  • linux调试
  • 【Python】:re.error bad escape i at position 4
  • 搭建ai知识助手
  • 分类
  • 标签
  • 归档
GitHub (opens new window)

松垮垮

c++后端开发工程师
首页
  • GPU并行编程
  • 图形学
  • 归并算法
  • 计算机视觉
  • css
  • html
  • JavaScript
  • vue
  • 压缩命令
  • cmdline
  • Docker
  • ftrace跟踪技术
  • gcov代码覆盖率测试
  • GDB
  • git
  • kgdb
  • linux操作
  • markdown
  • systemtap
  • valgrind
  • 设计模式
  • 分布式
  • 操作系统
  • 数据库
  • 服务器
  • 网络
  • C++
  • c语言
  • go
  • JSON
  • Makefile
  • matlab
  • OpenGL
  • python
  • shell
  • 正则表达式
  • 汇编
  • GPU并行编程
  • mysql
  • nginx
  • redis
  • 网络
  • 计算机视觉
  • 进程管理
  • linux调试
  • 【Python】:re.error bad escape i at position 4
  • 搭建ai知识助手
  • 分类
  • 标签
  • 归档
GitHub (opens new window)
  • 压缩命令
  • cmdline
  • Docker
  • ftrace跟踪技术
  • gcov代码覆盖率测试
  • GDB
  • git
  • kgdb
  • linux操作
  • markdown
  • systemtap
  • valgrind
  • 设计模式

  • 工具和开发
songkuakua
2025-02-15

压缩命令

# 7z压缩命令

Owner: -QVQ-

7z [<command>](notion://www.notion.so/commands/index.htm) [[<switch>](notion://www.notion.so/switches/index.htm)...] <base_archive_name> [<arguments>...]

<arguments> ::= [<switch>](notion://www.notion.so/switches/index.htm) | <wildcard> | <filename> | [@listfile]

[<switch>](notion://www.notion.so/switches/index.htm)::= -{switch_name}

支持通配符

*.txt means all files with an extension of ".txt"
?a* means all files with a second character of "a"
1 means all names that contains character "1"
..* means all names that contain two at least "." characters

<command>:

  • a

    7z a file1 file2 将file2 压缩生成file1

    7z a archive2.zip .\path\* 讲path文件夹下所有文件压缩到archive2.zip

  • x

    7z x *.zip [-o文件路径 [*.cpp]] [-r]

    与e的唯一区别是*.zip需要全路径

  • e

    7z e *.zip [-o文件路径 [*.cpp]] [-r]

    提取当前路径下所有.zip文件,[]内表示可选,-o表示提取到哪个路径,*.cpp表示限定只提取.cpp后缀的文件,-r表递归提取

powershell下批量解压缩到当前路径

start "D:\7-ZIP\7z.exe" "e $pwd\*.zip -o$pwd -r"

//删除.zip文件

rm *.zip

上次更新: 2025/02/21, 14:57:10
cmdline

cmdline→

最近更新
01
搭建ai知识助手
02-23
02
边缘检测
02-15
03
css
02-15
更多文章>
Theme by Vdoing | Copyright © 2025-2025 松垮垮 | MIT License | 蜀ICP备2025120453号 | 川公网安备51011202000997号
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 纯净模式