zoukankan      html  css  js  c++  java
  • Linux 杀死所有进程

    方法一:

    sudo killall -9 netease-cloud-music
    

    这种方法,必须要写全称。

    sudo netease-cloud-music 
    QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
    05-23, 14:29:48 [Error  ] [                          0] Media changed
    05-23, 14:29:48 [Error  ] [                          0] Player opening
    已杀死
    
    

    方法二:

    sudo kill -9 `pgrep netease`
    

    这种方法,只需要知道大概的名称即可。

    sudo netease-cloud-music 
    QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
    05-23, 14:31:53 [Error  ] [                          0] Media changed
    05-23, 14:31:53 [Error  ] [                          0] Player opening
    已杀死
    
    

    方法三:

    sudo pkill -9 netease-cloud
    

    这个是方法二的延伸版本

    sudo netease-cloud-music 
    QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
    05-23, 14:33:32 [Error  ] [                          0] Media changed
    05-23, 14:33:32 [Error  ] [                          0] Player opening
    已杀死
    
    

    方法四:

    # ps -aux | grep netease | awk '{print $2}'
    11270
    11271
    11273
    11309
    11416
    
    
    sudo kill -s 9 `ps -aux | grep netease | awk '{print $2}'`
    

    这个应该是最原始的思路了。

  • 相关阅读:
    Sass
    Less文件的建立
    面试问题整理
    高光谱图像分类部分名词解析
    监督学习,无监督学习和半监督学习
    git
    node.js安装及其环境配置
    浏览器从输入网址到渲染出页面的过程
    node的api
    模块与包管理工具
  • 原文地址:https://www.cnblogs.com/jiqing9006/p/9076824.html
Copyright © 2011-2022 走看看