当前位置:   article > 正文

批量杀进程libreoffice命令_linux杀死所有包含office的进程

linux杀死所有包含office的进程
ps -ef|grep libreoffice | awk '{print $2}' | xargs kill -9
  • 1
geeklee@geeklee-ThinkPad-E420:~$ ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 08:06 ?        00:00:01 /sbin/init splash
root         2     0  0 08:06 ?        00:00:00 [kthreadd]
root         3     2  0 08:06 ?        00:00:00 [ksoftirqd/0]
root         5     2  0 08:06 ?        00:00:00 [kworker/0:0H]
root         7     2  0 08:06 ?        00:00:20 [rcu_sched]
root         8     2  0 08:06 ?        00:00:00 [rcu_bh]
root         9     2  0 08:06 ?        00:00:00 [migration/0]
root        10     2  0 08:06 ?        00:00:00 [watchdog/0]
root        11     2  0 08:06 ?        00:00:00 [watchdog/1]
root        12     2  0 08:06 ?        00:00:00 [migration/1]
root        13     2  0 08:06 ?        00:00:00 [ksoftirqd/1]
root        15     2  0 08:06 ?        00:00:00 [kworker/1:0H]
root        16     2  0 08:06 ?        00:00:00 [watchdog/2]
root        17     2  0 08:06 ?        00:00:00 [migration/2]
root        18     2  0 08:06 ?        00:00:01 [ksoftirqd/2]
root        20     2  0 08:06 ?        00:00:00 [kworker/2:0H]
root        21     2  0 08:06 ?        00:00:00 [watchdog/3]
root        22     2  0 08:06 ?        00:00:00 [migration/3]
root        23     2  0 08:06 ?        00:00:00 [ksoftirqd/3]
root        25     2  0 08:06 ?        00:00:00 [kworker/3:0H]
root        26     2  0 08:06 ?        00:00:00 [kdevtmpfs]
root        27     2  0 08:06 ?        00:00:00 [netns]
root        28     2  0 08:06 ?        00:00:00 [perf]
root        29     2  0 08:06 ?        00:00:00 [khungtaskd]
root        30     2  0 08:06 ?        00:00:00 [writeback]
root        31     2  0 08:06 ?        00:00:00 [ksmd]
root        32     2  0 08:06 ?        00:00:04 [khugepaged]
root        33     2  0 08:06 ?        00:00:00 [crypto]
root        34     2  0 08:06 ?        00:00:00 [kintegrityd]
root        35     2  0 08:06 ?        00:00:00 [bioset]
root        36     2  0 08:06 ?        00:00:00 [kblockd]
root        37     2  0 08:06 ?        00:00:00 [ata_sff]
root        38     2  0 08:06 ?        00:00:00 [md]
root        39     2  0 08:06 ?        00:00:00 [devfreq_wq]
root        43     2  0 08:06 ?        00:00:04 [kswapd0]
root        44     2  0 08:06 ?        00:00:00 [vmstat]
root        45     2  0 08:06 ?        00:00:00 [fsnotify_mark]
root        46     2  0 08:06 ?        00:00:00 [ecryptfs-kthrea]
root        62     2  0 08:06 ?        00:00:00 [kthrotld]
root        63     2  0 08:06 ?        00:00:00 [acpi_thermal_pm]
root        64     2  0 08:06 ?        00:00:00 [bioset]
root        66     2  0 08:06 ?        00:00:00 [bioset]
root        67     2  0 08:06 ?        00:00:00 [bioset]
root        68     2  0 08:06 ?        00:00:00 [bioset]
root        69     2  0 08:06 ?        00:00:00 [bioset]
root        70     2  0 08:06 ?        00:00:00 [bioset]
root        71     2  0 08:06 ?        00:00:00 [bioset]
root        72     2  0 08:06 ?        00:00:00 [bioset]
root        73     2  0 08:06 ?        00:00:00 [bioset]
root        74     2  0 08:06 ?        00:00:00 [bioset]
root        75     2  0 08:06 ?        00:00:00 [bioset]
root        76     2  0 08:06 ?        00:00:00 [bioset]
root        77     2  0 08:06 ?        00:00:00 [bioset]
root        78     2  0 08:06 ?        00:00:00 [bioset]
root        79     2  0 08:06 ?        00:00:00 [bioset]
root        80     2  0 08:06 ?        00:00:00 [bioset]
root        81     2  0 08:06 ?        00:00:00 [bioset]
root        82     2  0 08:06 ?        00:00:00 [bioset]
root        83     2  0 08:06 ?        00:00:00 [bioset]
root        84     2  0 08:06 ?        00:00:00 [bioset]
root        85     2  0 08:06 ?        00:00:00 [bioset]
root        86     2  0 08:06 ?        00:00:00 [bioset]
root        87     2  0 08:06 ?        00:00:00 [bioset]
root        88     2  0 08:06 ?        00:00:00 [bioset]
root        93     2  0 08:06 ?        00:00:00 [ipv6_addrconf]
root       107     2  0 08:06 ?        00:00:00 [deferwq]
root       108     2  0 08:06 ?        00:00:00 [charger_manager]
root       149     2  0 08:06 ?        00:00:00 [irq/18-mmc0]
root       150     2  0 08:06 ?        00:00:00 [kpsmoused]
root       151     2  0 08:06 ?        00:00:00 [scsi_eh_0]
root       152     2  0 08:06 ?        00:00:00 [scsi_tmf_0]
root       153     2  0 08:06 ?        00:00:00 [scsi_eh_1]
root       154     2  0 08:06 ?        00:00:00 [scsi_tmf_1]
root       155     2  0 08:06 ?        00:00:00 [scsi_eh_2]
root       156     2  0 08:06 ?        00:00:00 [scsi_tmf_2]
root       157     2  0 08:06 ?        00:00:00 [scsi_eh_3]
root       158     2  0 08:06 ?        00:00:00 [scsi_tmf_3]
root       159     2  0 08:06 ?        00:00:00 [scsi_eh_4]
root       160     2  0 08:06 ?        00:00:00 [scsi_tmf_4]
root       161     2  0 08:06 ?        00:00:00 [scsi_eh_5]
root       162     2  0 08:06 ?        00:00:00 [scsi_tmf_5]
root       171     2  0 08:06 ?        00:00:00 [kfd_process_wq]
root       175     2  0 08:06 ?        00:00:00 [ttm_swap]
root       176     2  0 08:06 ?        00:00:00 [bioset]
root       177     2  0 08:06 ?        00:00:00 [bioset]
root       181     2  0 08:06 ?        00:00:00 [kworker/0:1H]
root       182     2  0 08:06 ?        00:00:00 [radeon-crtc]
root       184     2  0 08:06 ?        00:00:00 [radeon-crtc]
root       185     2  0 08:06 ?        00:00:00 [radeon-crtc]
root       186     2  0 08:06 ?        00:00:00 [radeon-crtc]
root       187     2  0 08:06 ?        00:00:00 [kworker/2:1H]
root       211     2  0 08:06 ?        00:00:01 [jbd2/sda12-8]
root       212     2  0 08:06 ?        00:00:00 [ext4-rsv-conver]
root       244     2  0 08:06 ?        00:00:00 [kauditd]
root       258     1  0 08:06 ?        00:00:00 /lib/systemd/systemd-journald
root       272     2  0 08:06 ?        00:00:00 [kworker/1:1H]
root       284     1  0 08:06 ?        00:00:00 /lib/systemd/systemd-udevd
root       424     2  0 08:06 ?        00:00:00 [ktpacpid]
root       425     2  0 08:06 ?        00:00:08 [ktpacpi_nvramd]
root       437     2  0 08:06 ?        00:00:00 [irq/29-mei_me]
root       519     2  0 08:06 ?        00:00:00 [cfg80211]
systemd+   532     1  0 08:06 ?        00:00:00 /lib/systemd/systemd-timesyncd
root       764     1  0 08:07 ?        00:00:01 /usr/sbin/acpid
avahi      768     1  0 08:07 ?        00:00:01 avahi-daemon: running [geeklee-T
root       774     1  0 08:07 ?        00:00:00 /usr/lib/accountsservice/account
root       783     1  0 08:07 ?        00:00:00 /lib/systemd/systemd-logind
message+   786     1  0 08:07 ?        00:00:11 /usr/bin/dbus-daemon --system --
avahi      798   768  0 08:07 ?        00:00:00 avahi-daemon: chroot helper
syslog     803     1  0 08:07 ?        00:00:00 /usr/sbin/rsyslogd -n
root       806     1  0 08:07 ?        00:00:15 /usr/sbin/NetworkManager --no-da
root       809     1  0 08:07 ?        00:00:00 /usr/sbin/ModemManager
whoopsie   812     1  0 08:07 ?        00:00:00 /usr/bin/whoopsie -f
root       825     1  0 08:07 ?        00:00:00 /usr/sbin/cups-browsed
root       828     1  0 08:07 ?        00:00:01 /usr/sbin/thermald --no-daemon -
root       832     1  0 08:07 ?        00:00:00 /usr/sbin/cron -f
root       870     1  0 08:07 ?        00:00:00 /usr/lib/snapd/snapd
root       880     1  0 08:07 ?        00:00:01 /usr/sbin/irqbalance --pid=/var/
root       889     1  0 08:07 ?        00:00:00 /usr/lib/policykit-1/polkitd --n
root       892     2  0 08:07 ?        00:00:01 [kworker/3:1H]
root       928     1  0 08:07 ?        00:00:00 /usr/sbin/lightdm
dnsmasq    943     1  0 08:07 ?        00:00:05 /usr/sbin/dnsmasq -x /var/run/dn
root      1001   928  3 08:07 tty7     00:16:14 /usr/lib/xorg/Xorg -core :0 -sea
postgres  1051     1  0 08:07 ?        00:00:00 /usr/lib/postgresql/9.5/bin/post
root      1058     1  0 08:07 ?        00:00:02 /sbin/wpa_supplicant -u -s -O /r
postgres  1066  1051  0 08:07 ?        00:00:01 postgres: checkpointer process  
postgres  1067  1051  0 08:07 ?        00:00:00 postgres: writer process   
postgres  1068  1051  0 08:07 ?        00:00:00 postgres: wal writer process   
postgres  1069  1051  0 08:07 ?        00:00:00 postgres: autovacuum launcher pr
postgres  1070  1051  0 08:07 ?        00:00:00 postgres: stats collector proces
root      1092     1  0 08:07 tty1     00:00:00 /sbin/agetty --noclear tty1 linu
root      1178   928  0 08:07 ?        00:00:00 lightdm --session-child 12 19
rtkit     1236     1  0 08:07 ?        00:00:00 /usr/lib/rtkit/rtkit-daemon
root      1245     1  0 08:07 ?        00:00:00 /usr/lib/upower/upowerd
colord    1275     1  0 08:07 ?        00:00:00 /usr/lib/colord/colord
geeklee   1308     1  0 08:07 ?        00:00:00 /lib/systemd/systemd --user
geeklee   1310  1308  0 08:07 ?        00:00:00 (sd-pam)
geeklee   1316     1  0 08:07 ?        00:00:00 /usr/bin/gnome-keyring-daemon --
geeklee   1318  1178  0 08:07 ?        00:00:01 /sbin/upstart --user
geeklee   1436  1318  0 08:07 ?        00:00:00 upstart-udev-bridge --daemon --u
root      1450   806  0 08:07 ?        00:00:00 /sbin/dhclient -d -q -sf /usr/li
geeklee   1451  1318  0 08:07 ?        00:00:21 dbus-daemon --fork --session --a
geeklee   1463  1318  0 08:07 ?        00:00:00 /usr/lib/x86_64-linux-gnu/hud/wi
geeklee   1493  1318  0 08:07 ?        00:00:01 upstart-dbus-bridge --daemon --s
geeklee   1495  1318  0 08:07 ?        00:00:05 upstart-dbus-bridge --daemon --s
geeklee   1500  1318  0 08:07 ?        00:00:00 upstart-file-bridge --daemon --u
geeklee   1506  1318  0 08:07 ?        00:00:30 /usr/bin/fcitx
geeklee   1528  1318  0 08:07 ?        00:00:09 /usr/bin/dbus-daemon --fork --pr
geeklee   1532  1318  0 08:07 ?        00:00:00 /usr/bin/fcitx-dbus-watcher unix
geeklee   1533  1318  0 08:07 ?        00:00:00 gpg-agent --homedir /home/geekle
nobody    1539   806  0 08:07 ?        00:00:05 /usr/sbin/dnsmasq --no-resolv --
geeklee   1611  1318  0 08:07 ?        00:00:01 /usr/lib/unity-settings-daemon/u
geeklee   1612  1318  0 08:07 ?        00:00:21 /usr/lib/x86_64-linux-gnu/bamf/b
geeklee   1622  1318  0 08:07 ?        00:00:17 /usr/lib/x86_64-linux-gnu/hud/hu
geeklee   1630  1318  0 08:07 ?        00:00:00 /usr/lib/at-spi2-core/at-spi-bus
geeklee   1631  1318  0 08:07 ?        00:00:00 /usr/lib/gnome-session/gnome-ses
geeklee   1636  1318  0 08:07 ?        00:00:32 /usr/lib/x86_64-linux-gnu/unity/
geeklee   1641  1630  0 08:07 ?        00:00:01 /usr/bin/dbus-daemon --config-fi
geeklee   1648  1318  0 08:07 ?        00:00:06 /usr/lib/at-spi2-core/at-spi2-re
geeklee   1650  1318  0 08:07 ?        00:00:00 /usr/lib/gvfs/gvfsd
geeklee   1657  1318  0 08:07 ?        00:00:00 /usr/lib/gvfs/gvfsd-fuse /run/us
geeklee   1669  1611  0 08:07 ?        00:00:00 syndaemon -i 1.0 -t -K -R
geeklee   1676  1318  0 08:07 ?        00:00:00 /usr/lib/x86_64-linux-gnu/indica
geeklee   1680  1318  0 08:07 ?        00:00:00 /usr/lib/x86_64-linux-gnu/indica
geeklee   1682  1318  0 08:07 ?        00:00:00 /usr/lib/x86_64-linux-gnu/indica
geeklee   1688  1318  0 08:07 ?        00:00:00 /usr/lib/x86_64-linux-gnu/indica
geeklee   1689  1318  0 08:07 ?        00:00:00 /usr/lib/x86_64-linux-gnu/indica
geeklee   1691  1318  0 08:07 ?        00:00:00 /usr/lib/x86_64-linux-gnu/indica
geeklee   1692  1318  0 08:07 ?        00:00:00 /usr/lib/x86_64-linux-gnu/indica
geeklee   1693  1318  0 08:07 ?        00:00:00 /usr/lib/x86_64-linux-gnu/indica
geeklee   1724  1318  0 08:07 ?        00:00:00 /usr/bin/pulseaudio --start --lo
geeklee   1740  1318  0 08:07 ?        00:00:06 /usr/lib/x86_64-linux-gnu/indica
geeklee   1754  1318  0 08:07 ?        00:00:00 /usr/lib/evolution/evolution-sou
geeklee   1756  1318  0 08:07 ?        00:00:02 /usr/lib/dconf/dconf-service
geeklee   1780  1318  3 08:07 ?        00:16:13 compiz
geeklee   1783  1318  0 08:07 ?        00:00:01 /usr/lib/x86_64-linux-gnu/notify
geeklee   1788  1631  0 08:07 ?        00:00:00 /usr/lib/policykit-1-gnome/polki
geeklee   1790  1631  0 08:07 ?        00:00:44 nm-applet
geeklee   1792  1631  0 08:07 ?        00:00:00 /usr/lib/unity-settings-daemon/u
geeklee   1805  1631  0 08:07 ?        00:01:07 nautilus -n
geeklee   1806  1631  0 08:07 ?        00:00:07 /usr/bin/gnome-software --gappli
geeklee   1813  1318  0 08:07 ?        00:00:00 /usr/lib/gvfs/gvfs-udisks2-volum
root      1820     1  0 08:07 ?        00:00:06 /usr/lib/udisks2/udisksd --no-de
geeklee   1830  1318  0 08:07 ?        00:00:00 /usr/lib/gvfs/gvfs-gphoto2-volum
geeklee   1836  1318  0 08:07 ?        00:00:00 /usr/lib/evolution/evolution-cal
geeklee   1841  1318  0 08:07 ?        00:00:00 /usr/lib/gvfs/gvfs-mtp-volume-mo
geeklee   1846  1318  0 08:07 ?        00:00:00 /usr/lib/gvfs/gvfs-afc-volume-mo
geeklee   1852  1318  0 08:07 ?        00:00:00 /usr/lib/gvfs/gvfs-goa-volume-mo
root      1858     1  0 08:07 ?        00:00:00 /usr/lib/x86_64-linux-gnu/fwupd/
geeklee   1871  1318  0 08:07 ?        00:00:00 /usr/lib/gvfs/gvfsd-trash --spaw
geeklee   1891  1318  0 08:07 ?        00:00:00 /usr/lib/gvfs/gvfsd-metadata
geeklee   1900  1836  0 08:07 ?        00:00:00 /usr/lib/evolution/evolution-cal
geeklee   1915  1836  0 08:07 ?        00:00:00 /usr/lib/evolution/evolution-cal
geeklee   1926  1318  0 08:07 ?        00:00:00 /usr/lib/evolution/evolution-add
geeklee   1940  1926  0 08:07 ?        00:00:00 /usr/lib/evolution/evolution-add
geeklee   1950  1318  0 08:07 ?        00:00:00 /usr/lib/x86_64-linux-gnu/gconf/
geeklee   1964  1318  0 08:07 ?        00:00:01 sogou-qimpanel-watchdog
geeklee   1966  1318  0 08:07 ?        00:00:37 sogou-qimpanel
geeklee   2157  1631  0 08:08 ?        00:00:03 zeitgeist-datahub
geeklee   2164  1318  0 08:08 ?        00:00:00 /bin/sh -c /usr/lib/x86_64-linux
geeklee   2168  2164  0 08:08 ?        00:00:00 /usr/bin/zeitgeist-daemon
geeklee   2175  1318  0 08:08 ?        00:00:01 /usr/lib/x86_64-linux-gnu/zeitge
geeklee   2208  1318  0 08:08 ?        00:00:00 /usr/lib/gvfs/gvfsd-network --sp
geeklee   2241  1318  0 08:08 ?        00:00:00 /usr/lib/gvfs/gvfsd-dnssd --spaw
geeklee   2281  1631  0 08:08 ?        00:00:00 update-notifier
geeklee   2294  1318  0 08:08 ?        00:00:00 /bin/sh /usr/pycharm-2016.2.3/bi
geeklee   2314  1318  0 08:08 ?        00:00:00 /usr/lib/glib-networking/glib-pa
geeklee   2360  2294 14 08:08 ?        01:15:23 /usr/pycharm-2016.2.3/bin/../jre
geeklee   2575  2360  0 08:09 ?        00:00:01 /usr/pycharm-2016.2.3/bin/fsnoti
geeklee   2683  1631  0 08:09 ?        00:00:00 /usr/lib/x86_64-linux-gnu/deja-d
geeklee   2713  1318  1 08:10 ?        00:05:04 /usr/lib/gnome-terminal/gnome-te
root      3016     2  0 08:21 ?        00:00:03 [kworker/3:0]
geeklee   3648  2713  0 08:47 pts/11   00:00:00 bash
geeklee   5428  1318  0 09:08 ?        00:00:00 /usr/lib/gvfs/gvfsd-http --spawn
geeklee   7136  3648 43 09:44 pts/11   03:00:30 python manage.py zhejiang getall
postgres  7305  1051  0 09:51 ?        00:01:16 postgres: deploy pol_gov_mon 127
geeklee   7367  2360  1 09:55 ?        00:06:26 /usr/bin/python2.7 /usr/pycharm-
root      7543     2  0 10:01 ?        00:00:13 [kworker/3:1]
root      7637     2  0 10:03 ?        00:00:13 [kworker/1:0]
geeklee   9586  1318  0 11:10 ?        00:00:01 /usr/lib/gvfs/gvfsd-recent --spa
root      9598     2  0 11:10 ?        00:00:11 [kworker/2:1]
geeklee   9678  2713  0 11:13 pts/12   00:00:00 bash
geeklee   9688  9678  0 11:13 pts/12   00:00:01 python manage.py xinjiang getall
geeklee   9857  9678  0 11:21 pts/12   00:00:38 python manage.py xinjiang getall
postgres  9869  1051  0 11:21 ?        00:00:01 postgres: deploy pol_gov_mon 127
root     10927     2  0 12:03 ?        00:00:00 [kworker/1:1]
geeklee  12382  9678  0 12:56 pts/12   00:00:01 python manage.py xinjiang getall
geeklee  12403  9678  0 12:56 pts/12   00:00:02 python manage.py xinjiang getall
geeklee  12464  1318  0 12:58 ?        00:00:00 /usr/lib/x86_64-linux-gnu/unity-
geeklee  12478  1318  0 12:58 ?        00:00:01 /usr/bin/unity-scope-loader appl
geeklee  12480  1318  0 12:58 ?        00:00:00 /usr/lib/x86_64-linux-gnu/unity-
geeklee  13280  9678  0 13:20 pts/12   00:00:03 python manage.py xinjiang getall
geeklee  13874  1318  0 13:46 ?        00:00:00 /home/geeklee/.lantern/bin/lante
geeklee  13885 13874  0 13:46 ?        00:00:18 /home/geeklee/.lantern/bin/lante
geeklee  14225  9678  0 13:55 pts/12   00:00:08 python manage.py xinjiang getall
geeklee  14257  9678  0 13:57 pts/12   00:00:01 python manage.py xinjiang getall
geeklee  14274  9678  0 13:57 pts/12   00:00:07 python manage.py xinjiang getall
root     15640     2  0 14:36 ?        00:00:00 [kworker/0:0]
geeklee  16156  9678  0 14:41 pts/12   00:00:00 python
geeklee  17269  1318 16 15:23 ?        00:11:51 /usr/lib/firefox/firefox
root     17735     2  0 15:30 ?        00:00:01 [kworker/2:2]
root     19125     2  0 16:11 ?        00:00:06 [kworker/u16:0]
root     19270     2  0 16:13 ?        00:00:00 [kworker/0:1]
root     19381     2  0 16:17 ?        00:00:02 [kworker/u16:3]
geeklee  20147  7136  0 16:30 pts/11   00:00:00 sh -c /usr/bin/libreoffice libre
geeklee  20148 20147  0 16:30 pts/11   00:00:00 /opt/libreoffice4.2/program/oosp
geeklee  20170 20148 99 16:30 pts/11   00:05:56 /opt/libreoffice4.2/program/soff
root     20261     2  0 16:31 ?        00:00:00 [kworker/3:2]
root     20369     2  0 16:33 ?        00:00:00 [kworker/2:0]
geeklee  20468  1318  0 16:35 ?        00:00:00 /opt/libreoffice4.2/program/oosp
root     20483     2  0 16:36 ?        00:00:00 [kworker/u16:1]
geeklee  20493  2713  0 16:36 pts/0    00:00:00 bash
geeklee  20506 20493  0 16:36 pts/0    00:00:00 ps -ef
geeklee@geeklee-ThinkPad-E420:~$ ps -ef|grep
用法: grep [选项]... PATTERN [FILE]...
试用'grep --help' 来获得更多信息。
geeklee@geeklee-ThinkPad-E420:~$ ps -ef|grep libreoffice
geeklee  20147  7136  0 16:30 pts/11   00:00:00 sh -c /usr/bin/libreoffice libreoffice --convert-to xlsx /home/geeklee/temp/all_gov_file/pol_gov_mon/downloads/P020150104509470446815.xls --outdir /home/geeklee/temp/all_gov_file/pol_gov_mon/downloads/ --headless --invisible
geeklee  20148 20147  0 16:30 pts/11   00:00:00 /opt/libreoffice4.2/program/oosplash libreoffice --convert-to xlsx /home/geeklee/temp/all_gov_file/pol_gov_mon/downloads/P020150104509470446815.xls --outdir /home/geeklee/temp/all_gov_file/pol_gov_mon/downloads/ --headless --invisible
geeklee  20170 20148 99 16:30 pts/11   00:06:30 /opt/libreoffice4.2/program/soffice.bin libreoffice --convert-to xlsx /home/geeklee/temp/all_gov_file/pol_gov_mon/downloads/P020150104509470446815.xls --outdir /home/geeklee/temp/all_gov_file/pol_gov_mon/downloads/ --headless --invisible
geeklee  20468  1318  0 16:35 ?        00:00:00 /opt/libreoffice4.2/program/oosplash --calc file:///tmp/mozilla_geeklee0/P020161013401762969006.xlsx
geeklee  20516 20493  0 16:37 pts/0    00:00:00 grep --color=auto libreoffice
geeklee@geeklee-ThinkPad-E420:~$ ps -ef|grep libreoffice | awk '{print $2}'
20147
20148
20170
20468
20522
geeklee@geeklee-ThinkPad-E420:~$ ps -ef|grep libreoffice | awk '{print $2}' | xargs - kill -9
xargs: -: 没有那个文件或目录
geeklee@geeklee-ThinkPad-E420:~$ ps -ef|grep libreoffice | awk '{print $2}' | xargs kill -9
批量杀进程libreoffice命令
geeklee@geeklee-ThinkPad-E420:~$ 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257
  • 258
  • 259
  • 260
  • 261
  • 262
  • 263
  • 264
  • 265
  • 266
  • 267
  • 268
  • 269
  • 270
  • 271
  • 272
  • 273
  • 274
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/236308
推荐阅读
相关标签
  

闽ICP备14008679号