我想用fatlabel更改胖usb的卷标签,但是当我试图在终端中运行命令时,它就认不出来了。
root@debian:/home/a# fatlabel --help
bash: fatlabel: command not found所以我试着安装dosfstools,它是包含fatlabel的包。但是它已经安装好了。
root@debian:/home/a# apt-get install dosfstools
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
dosfstools is already the newest version (4.2-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.man fatlabel和联机手册https://manpages.debian.org/bullseye/dosfstools/fatlabel.8.en.html都清楚地指出,fatlabel是调用命令的正确名称。如何恢复命令?
发布于 2022-11-22 07:56:25
该命令位于/sbin中,因此您的PATH可能不包含该目录(例如,如果您使用su更改为root,则会发生这种情况)。
快速的解决办法是给出它的全部路径:
/sbin/fatlabel --help您可以使用dpkg -L找到安装给定包的命令的位置:
dpkg -L dosfstools | grep bin/https://unix.stackexchange.com/questions/725845
复制相似问题