mysql --help | grep 'Default options' -A 1
mysql查看my.cnf位置
参考
linux shell 管道命令(pipe)使用及与shell重定向区别open in new window