我读了答案无线 - 如何检查当前安装的 WiFi 驱动程序的信息? - 询问 Ubuntu并学习命令
sudo apt-get install -y hardinfo
-y
然后我尝试在man
页面中找到该选项
me@alpha:~$ man apt-get | grep '-y'
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
me@alpha:~$ man apt | grep '-y'
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
me@alpha:~$ man install | grep '-y'
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
me@alpha:~$ man 'apt install'
No manual entry for apt install
我怎样才能获得有关选项的手册apt install
?
答案1
该命令实际上apt
不是install
。可以通过以下方式查看手册页:
man apt
和
man apt-get
在此特定情况下,在sudo apt install <program-name>
继续之前会询问您是否确实要安装。该-y
选项可防止 apt 询问您是否要安装 - 它假定“是”