LINUX grep練習題

1、顯示/proc/meminfo文件中以大小s開頭的行(要求:使用兩 種方法) 代碼: cat /proc/meminfo|grep -i ^s 執行結果 2、顯示/etc/passwd文件中不以/bin/bash結尾的行 代碼: cat /etc/passwd |grep -v /bin/bash$ 3、顯示用戶rpc默認的shell程序 代碼: cat /etc/passwd |grep ^
相關文章
相關標籤/搜索