在 Debian 系统中,并没有一个叫做 extract 的标准命令。你可能是遇到了以下几种情况之一,下面分别说明“在哪查看 / 怎么用”:
Debian 中常用的“extract”其实是不同压缩格式对应的命令:
which tar
which unzip
which unrar
which 7z
tar -xvf file.tar
tar -xzvf file.tar.gz
tar -xjvf file.tar.bz2
unzip file.zip
unrar x file.rar
7z x file.7z
extract 脚本(非系统自带)有些第三方工具或软件包会提供一个 extract 脚本,例如:
apt list --installed | grep extract
或者搜索系统中是否存在:
find / -name extract 2>/dev/null
dpkg-extract / dpkg-deb?如果是查看 .deb 包内容:
dpkg-deb -x package.deb ./out_dir
查看帮助:
man dpkg-deb
例如:
ffmpeg7zbinwalkforemost可以查看对应软件的帮助:
command --help
man command
| 你想做的事 | 命令 |
|---|---|
| 解压 tar | tar -xvf |
| 解压 zip | unzip |
| 解压 rar | unrar x |
| 解压 deb | dpkg-deb -x |
| 查找 extract | find / -name extract |
如果你能贴出你具体看到的 extract 是在哪出现的(终端、教程、脚本),我可以更精确地告诉你。