---
title: "linux 根据进程名称kill进程"
author: "alanland"
date: "2014-04-09T14:21:48Z"
tags: ["Bash"]
categories: ["操作系统"]
slug: "linux-kill"
draft: false
lastmod: "2014-04-09T14:21:48Z"
id: 2042459
url: "https://alanland.iteye.com/blog/2042459"
---

：

```
#!sh

i1=`ps -ef|grep -E "Bootstrap"|grep -v grep|awk '{print $2}'`
kill -9 $i1

```

 

。