Differneces between Unix-like systems

Table of Contents

1 UNIX-like系统的一些不同

Table 1: Some differneces between Linux, AIX, Solaris, OSX etc.
TASK Linux AIX Solaris OSX
Default C/C++ compiler gcc/g++ xlc/xlC cc/CC clang/clang++
Debugger gdb dbx mdb (Solaris Modular Debugger) lldb
Shard library dependencies ldd ldd ldd otool -L
Library path $LD_LIBRARY_PATH $LIBPATH $LD_LIBRARY_PATH $DYLD_LIBRARY_PATH
Tracing utility strace truss truss dtruss
Hardware configuration lshw/lsusb/… prtconf prtconf -v hostinfo
Determine 32 or 64 arch/uname -m getconf KERNEL_BITMODE isainfo -b uname -a

更多其它UNIX-like系统的差异可参考:http://bhami.com/rosetta.html

2 Portability Tips

pgrep is not available in AIX by default.
whoami is not available in Solaris by default.


Author: cig01

Created: <2015-04-11 Sat 00:00>

Last updated: <2017-12-19 Tue 14:42>

Creator: Emacs 25.3.1 (Org mode 9.1.4)