locate 用法:  locate  source     从database中去检查文件

find 的用法:   find  ./  -name "*.java" -type f  -size 1024k

                    find 后面加 -exec 后,能够将找到的文件进行处理,使用时有可能由于语法错误报 find: missing argument to `-exec'

                    正确的写法为:如find ./ -name "test" -exec grep "^jia.*" {} \;

                    -exec 后面是"空格" command "空格"{}"空格"\;

压缩: tar -zcf 压缩后文件名.tgz(tar.gz) 压缩文件名

解压: tar -zxf *.tar.gz(.tgz)

相关文章:

  • 2022-12-23
  • 2021-12-31
  • 2021-07-25
  • 2021-08-04
  • 2022-01-06
  • 2022-02-16
  • 2021-11-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案