Linux批量kill进程

来源:https://blog.csdn.net/u012421852/article/details/51194782 命令: $ps -ef | grep “StarCraft” | grep -v “grep” | cut -c 9-15 | xargs kill -9 其中: ps -ef: 静态显示所有进程 grep “StarCraft”: 筛选所有含有StarCraft字眼的进程 grep -v “grep”: 筛选出所有不含grep字眼的进程 cut -c 9-15: 剪取9-15位的字符,这里对应进程ID,对象为ps -ef输出对象 xargs kill -9: 杀掉前面得到的进程

Linux软件安转目录

转载自:https://blog.csdn.net/aqxin/article/details/48324377   Linux 的软件安装目录是也是有讲究的,理解这一点,在对系统管理是有益的 /usr:系统级的目录,可以理解为C:/Windows/,/usr/lib理解为C:/Windows/System32。 /usr/local:用户级的程序目录,可以理解为C:/Progrem Files/。用户自己编译的软件默认会安装到这个目录下。 /opt:用户级的程序目录,可以理解为D:/Software,opt有可选的意思,这里可以用于放置第三方大型软件(或游戏),当你不需要时,直接rm -rf掉即可。在硬盘容量不够时,也可将/opt单独挂载到其他磁盘上使用。 源码放哪里? /usr/src:系统级的源码目录。 /usr/local/src:用户级的源码目录。 —————–翻译——————- /opt Here’s where optional stuff is put. Trying out the latest Firefox beta? Install it to /opt where you can delete it without affecting other settings. Programs in here usually live inside a single folder whick contains all of their data, libraries, etc. […]