是什么 ? | : | a utility for determining the type of a given file or files. |
开发语言 | : | C |
官方主页 | : | http://www.darwinsys.com/file |
源码仓库 | : | https://github.com/file/file |
操作系统 | 包管理器 | 安装命令 |
---|---|---|
Windows | scoop | scoop install file |
macOS | HomeBrew | brew install file-formula |
GNU/Linux | HomeBrew | brew install file-formula |
apt | sudo apt-get install -y file | |
CentOS | yum | sudo yum install -y file |
dnf | sudo dnf install -y file | |
openSUSE | zypper | sudo zypper install -y file |
Alpine Linux | apk | sudo apk add file |
pacman | sudo pacman -Syyu --noconfirm | |
Gentoo Linux | Portage | sudo emerge file |
示例1:查看上文件的类型
示例2:查看上一条命令的参数
file !$