linux常用命令

来源:互联网 发布:怎么读取poi数据 编辑:程序博客网 时间:2024/06/06 20:57


watch


 watch --helpUsage: watch [-bcdhnptvx] [--beep] [--color] [--differences[=cumulative]] [--exec] [--help] [--interval=<n>] [--no-title] [--version] <command>  -b, --beepbeep if the command has a non-zero exit  -d, --differences[=cumulative]highlight changes between updates(cumulative means highlighting is cumulative)  -e, --errexitexit watch if the command has a non-zero exit  -h, --helpprint a summary of the options  -n, --interval=<seconds>seconds to wait between updates  -p, --preciseprecise timing, ignore command run time  -v, --versionprint the version number  -t, --no-titleturns off showing the header  -x, --execpass command to exec instead of sh

watch adb shell busybox free


如何去掉grep产生的No such file or directory

很简单,用grep命令的-s选项。-s:不显示文件不存在和文件不可读的错误信息例如,在em*目录下的所有xml文件中查找字符串abc,命令如下:find em* -name '*.xml' | xargs grep -s 'abc'

0 0
原创粉丝点击