Couple of Cross Platform tips....

Package Management

List contents of a package
Gentoo - qlist <packagename>
Redhat - rpm -l <packagename>
Debian - dpkg-query -L <packagename>
FreeBSD - pkg_info -L <packagename>
Find a package
Gentoo - esearch <packagename>
Debian - dpkg-query -l <packagename>
Solaris - pkginfo | grep <packagename>
Find which package owns a file
Gentoo - qfile <filename with full path>
Debian - dpkg-query -f <filename with full path>

System Config

Show CPU model
GNU/Linux - cat /proc/cpuinfo
Solaris - prtdiag
FreeBSD - sysctl hw.model
Show Total Memory
GNU/Linux - free
Solaris - prtdiag
FreeBSD - sysctl -a | grep Memory
Console/LOM/ALOM/etc
Solaris - Port labeled "Serial Mgt" on Sun V240 takes a cisco type cross over cable and 9600,8N1,s/w flow


EMail : Spam free email address


FSF Europe Supporter GNU generation