查看/etc/hosts中hostname对应的IP地址
cat /etc/hosts|grep -E -v "^$|^#"
查看informix数据库sqlhosts文件
cat /home/informix/etc/sqlhosts|grep -E -v "^$|^#"
查看tcp端口号配置
cat /etc/services|grep -E -v "^$|^#"
本文介绍了如何使用cat命令配合grep来查找和筛选/etc/hosts、informix数据库的sqlhosts文件以及/etc/services文件中的有效信息,帮助读者理解这些关键网络配置文件的内容。
查看/etc/hosts中hostname对应的IP地址
cat /etc/hosts|grep -E -v "^$|^#"
查看informix数据库sqlhosts文件
cat /home/informix/etc/sqlhosts|grep -E -v "^$|^#"
查看tcp端口号配置
cat /etc/services|grep -E -v "^$|^#"

被折叠的 条评论
为什么被折叠?