我如何获得man命令?

时间:2018-11-16 18:53:35

标签: windows-subsystem-for-linux

我是第一次安装Linux的Windows子系统,并从Windows应用商店下载了Debian发行版。

我尝试做的第一件事是使用“ mv”命令。第二件事是运行“ man mv”,因为我不记得如何使用它。但是我收到了错误:

-bash: man: command not found

看起来就像我想要的软件包称为手册页。但是我无法安装:

sudo apt-get install manpages
[sudo] password for pi:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package manpages is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'manpages' has no installation candidate

如何启动和运行man命令?

2 个答案:

答案 0 :(得分:2)

0.0更新本地软件包列表,然后更新apt update安装实际软件包。

答案 1 :(得分:0)

我想补充一下elken的答案,显然,'man-db'软件包并未涵盖所有手册页。例如,我需要C stdio库的文档(fopen,fgets等),为此,我必须安装'manpages-dev':

sudo apt install manpages-dev

显然还有其他一些联机帮助集(在某些unix发行版上/它们的名称不同),请参见https://superuser.com/questions/40609/how-to-install-man-pages-for-c-standard-library-functions-in-ubuntu