zoukankan      html  css  js  c++  java
  • linux命令学习

    搜索命令:

    locate 可以根据文件名快速查找

    使用updatedb立即更新数据库。 路径配置过滤(/etc/updatedb.conf)

     

    whereis -b 可执行文件名 

    which  可执行文件名 可以看到别名

    find 范围 匹配条件

    find / -name a.txt  精确匹配a.txt

    find / -name "a*.txt"  a开头的txt

    find / -name a?.txt  匹配ab.txt

    find / -name a[bc].txt 匹配ab.txt  ac.txt

    find / -mtime -10  10天内修改的文件

    find / -mtime +10  10天前修改的文件

    (atime 访问时间 ,ctime改变文件属性)

    find . -size +100M  大于100M的文件

    find . -size +100M  -a  -size +100M 大于100M且小于200M的文件 

    (-a 并且  -o 或者)

     

     

    find . -size +100M  -exec ls {} ;  交给ls处理

  • 相关阅读:
    find the most comfortable road
    Rank of Tetris
    Segment set
    Codeforces Round #380 (Div. 2)D. Sea Battle
    A Bug's Life
    Is It A Tree?
    N皇后问题
    符号三角形
    2016 ICPC总结
    Sudoku Killer
  • 原文地址:https://www.cnblogs.com/douyamv/p/6568940.html
Copyright © 2011-2022 走看看