Consider the following command, which I am trying to execute on Red Hat Enterprise Linux 8 system.
nmcli con add help | less
Some of the help pages for specific COMMANDs are quite lengthy and piping to less is not working as I would expect. Normally a command like 'man nmcli | less' provides the first page and you have to use navigation to get to the bottom. In this case it shows me the last page, and I can't page up. Attempting to do so results in a page full of blank lines. I'd like to see all of the help documentation for that particular combination of the object and add command. For some reason the help option for the nmcli command is not working well with the less utility. If I try to use '>' to redirect to a file I end up with a blank file.
It looks nmcli
help is writing on stderr instead of stdout.
The following works on CentOS 7:
$ nmcli con add help 2>&1 | less