たろログ2

実験的運用により、記事品質が乱高下することがあります。予めご了承ください。

2022-07-28 RHEL6 の awk は gawk

前書き

man awk と実行すると gawk というコマンドのマニュアルが出てきて驚いたが、 RHEL6 の awkgawk というコマンドのエイリアスとなっていた。

コマンド出力

# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.10 (Santiago)
# which awk
/bin/awk
# file /bin/awk
/bin/awk: symbolic link to `gawk'
# file /bin/gawk
/bin/gawk: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
# ls -l /bin/awk
lrwxrwxrwx. 1 root root 4 Jul 14  2015 /bin/awk -> gawk
# which gawk
/bin/gawk
# file /bin/gawk
/bin/gawk: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
# ls -l /bin/gawk
-rwxr-xr-x. 1 root root 375360 Jul  4  2012 /bin/gawk