Less or more command on Solaris for paginating output

command-line-interfacesolarissolaris-11

When I type "ifconfig | more" or "ifconfig | less" the output isn't paginated on Solaris (I'm used to Linux and FreeBSD). Is there a way to do this on Solaris 11?

Best Answer

The reason is, unlike Linux, ifconfig without options isn't a valid command under Solaris. The equivalent command would be ifconfig -a. If you run it without options, ifconfig displays a help message on its standard error stream.

To have it paginated, simply use:

ifconfig 2>&1 | less

By the way, ifconfig is somewhat obsolete under Solaris 11. I would recommended to use the more powerful ipadm instead.

Related Topic