zoukankan      html  css  js  c++  java
  • Linux 命令

    • Find()  

         find dir [option] 内容 

         -name    find ./ -name  "*.c"

         -type   find ./ -type f

           -size   find ./ -size +1M - size-5M  find ./ -maxdepth -size +1M

         -maxdepth  find ./2 -size +1M -exec ls -l{}; // 结果特别多的时候 容易指令移除 

         xargs   find ./ -type l | xargs  ls -l;   将 find 命令查找的结果 分成若干块

              find ./ -type f | grep txt  grep 对内容过滤

    - 普通文件 f
    d 目录文件
    b 块设备
    c 字符设备
    p 管道设备 pipe
    s 本地套接字 (网络编程
    •  grep  对文件内容进行查找

        grep -rn "main" *.c    n 行

        cat  a.c | grep -rn "main" *.c

        tail -f a.c | grep  connect 

      grep -v 

      grep -r 递归

          grep -v connect   // 排除 过滤

    • zip  打包 zip -r dir.zip  src //包含子目录

         unzip dir.zip  

      rar a -r newdir.rir

      rar x newdir.rar

      

    •   gzip gunzip  只能操作文件 不能操作目录
    • tar (常用    

        -z gz 格式

        -c  压缩 

        -v 显示信息

        -f 指定压缩包名

      • tar  zcvf  bb.tar.gz  bb
      • tar      zxvf  bb.tar.gz

         

    • rar 压缩包 
      •   a  压缩
      •        -r递归子目录
      • rar a -r  打包
      • rar x     
    •  软件 安装 卸载
      •   sudo agt-get install update
      •   sudo agt-get remove 
      •        sudo apt-get clean

    dpkg deb 安装包 安装软件

    sudo dpkg -i xxx.deb

    sudp dpkg -r xxx.deb

  • 相关阅读:
    常见的等待事件如何处理
    oracle常见的等待事件
    12c建立物化视图出现ORA-23319错误
    ORA-07445: exception encountered: core dump [qsmmixGetIdxKeyStats()+231] [SIGSEGV] [ADDR:0x8] [PC:0x58AE44F] [Address not mapped to object] []
    Idea的Debug调试快捷键
    C# 程序禁止重复启动
    C#.Net与SQLServer时间范围的最小值最大值
    MySQL-8.0.20
    Flask框架
    Docker常用命令
  • 原文地址:https://www.cnblogs.com/jingchu/p/10057540.html
Copyright © 2011-2022 走看看