-bash: file: command not found

1 개요[ | ]

-bash: file: command not found
root@wsl:~# file
-bash: file: command not found
root@wsl:~# apt install -y file
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libmagic-mgc libmagic1
The following NEW packages will be installed:
  file libmagic-mgc libmagic1
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 468 kB of archives.
After this operation, 7,075 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 libmagic-mgc amd64 1:5.39-3 [273 kB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 libmagic1 amd64 1:5.39-3 [126 kB]
Get:3 http://deb.debian.org/debian bullseye/main amd64 file amd64 1:5.39-3 [69.1 kB]
Fetched 468 kB in 18s (25.9 kB/s)
Selecting previously unselected package libmagic-mgc.
(Reading database ... 17086 files and directories currently installed.)
Preparing to unpack .../libmagic-mgc_1%3a5.39-3_amd64.deb ...
Unpacking libmagic-mgc (1:5.39-3) ...
Selecting previously unselected package libmagic1:amd64.
Preparing to unpack .../libmagic1_1%3a5.39-3_amd64.deb ...
Unpacking libmagic1:amd64 (1:5.39-3) ...
Selecting previously unselected package file.
Preparing to unpack .../file_1%3a5.39-3_amd64.deb ...
Unpacking file (1:5.39-3) ...
Setting up libmagic-mgc (1:5.39-3) ...
Setting up libmagic1:amd64 (1:5.39-3) ...
Setting up file (1:5.39-3) ...
Processing triggers for libc-bin (2.31-13+deb11u5) ...
root@wsl:~# file
Usage: file [-bcCdEhikLlNnprsSvzZ0] [--apple] [--extension] [--mime-encoding]
            [--mime-type] [-e <testname>] [-F <separator>]  [-f <namefile>]
            [-m <magicfiles>] [-P <parameter=value>] [--exclude-quiet]
            <file> ...
       file -C [-m <magicfiles>]
       file [--help]
root@wsl:~# file -v
file-5.39
magic file from /etc/magic:/usr/share/misc/magic

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}