cat .mysql_history 顯示文件內容
cat .mysql_history | grep XXXX 過濾只顯示包含XXXX的行的內容
cat .mysql_history | grep XXXX | cut -c -100 過濾,只顯示包含XXXX的行的內容的前100個字符
cat .mysql_history | grep XXXX | grep -v YYYY 過濾,顯示包含XXXX且不包含YYYY的
cat .mysql_history 顯示文件內容
cat .mysql_history | grep XXXX 過濾只顯示包含XXXX的行的內容
cat .mysql_history | grep XXXX | cut -c -100 過濾,只顯示包含XXXX的行的內容的前100個字符
cat .mysql_history | grep XXXX | grep -v YYYY 過濾,顯示包含XXXX且不包含YYYY的
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。