zoukankan      html  css  js  c++  java
  • 我的linux常用操作

    1. df -lh,du -h, df -Th
    2. ls -lh
    3. ls -lh reg*?
    4. cat -n file
    5. cat -n file | grep reg*?
    6. echo $PS1/PS2
    7. 查询IP冲突:nmap -sP x.x.x.1/24 在使用arping 存活的ip,看返回的mac是否只有一条。
    8. netstat -ntlp
    9. yum list | grep app
    10. rpm -qa | grep app
    11. rpm -e app --nodepes
    12. rpm -ivh
    13. tar -xvf file
    14. tar -cvf file
    15. tail -n 10 file
    16. head -n 10 file
    17. less more
    18. man cmd 空格翻页,q退出
    19. ps -ef ,kill PID,top 关注load average,分别表示过去1,5,15分钟的负载情况,值越大负载越高,超过2就表明系统比较忙
    20. mount,umount 如果提示设备忙,使用lsof /dev查询
    21. grep -n reg*? file,grep -c reg*? file, grep -e reg*? -e reg1*? file,grep -v reg*? file
    22. find / -name reg 在/目录下(也就是搜索所有的)查找reg匹配的文件
    骑着毛驴看日出
  • 相关阅读:
    Excel Add-in
    并发控制MsSql
    Kaggle实战分类问题2
    NuGet
    Pomelo分布式游戏服务器框架
    Ambari
    oracle 多行转多列查询
    Oauth2.0 用Spring-security-oauth2
    bug排查小结
    Linux之lsof命令
  • 原文地址:https://www.cnblogs.com/linsir/p/4544066.html
Copyright © 2011-2022 走看看