I read the answer wireless - How can I check the information of currently installed WiFi drivers? - Ask Ubuntu and learn a command
sudo apt-get install -y hardinfo
then I tried to find the option -y
in the man
page
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
How could I get a manual about options to apt install
?
grep
is interpreting-y
as a command line option - you can prevent that by marking the end of options using--
e.g.man apt-get | grep -- '-y'
but TBH it's probably more helpful to search interactively within the man page by as described here How to search through a man page? for example – steeldriver Jan 21 '19 at 04:04