进程管理

1.进程管理

进程管理_第1张图片
进程管理_第2张图片


[cxg@localhost ~]$ ps ##列出系统中当前运行的那些进程

  PID TTY          TIME CMD
  9255 pts/0    00:00:00 bash
 10204 pts/0    00:00:00 ps

[cxg@localhost ~]$ ps ax##显示所有进程{包括运行,中断,不可中断,僵死,休眠(ss)}

   PID TTY      STAT   TIME COMMAND
     1 ?        Ss     0:03 /usr/lib/systemd/systemd --switched-root --system --deserialize 22
     2 ?        S      0:00 [kthreadd]
     3 ?        S      0:00 [ksoftirqd/0]
     5 ?        S<     0:00 [kworker/0:0H]
     7 ?        S      0:00 [migration/0]
     8 ?        S      0:00 [rcu_bh]
     9 ?        S      0:02 [rcu_sched]
    10 ?        S<     0:00 [lru-add-drain]
    11 ?        S      0:00 [watchdog/0]
    12 ?        S      0:00 [watchdog/1]
    13 ?        S      0:00 [migration/1]
    14 ?        S      0:00 [ksoftirqd/1]
    16 ?        S<     0:00 [kworker/1:0H]
    18 ?        S      0:00 [kdevtmpfs]
    19 ?        S<     0:00 [netns]
    20 ?        S      0:00 [khungtaskd]
    21 ?        S<     0:00 [writeback]
    22 ?        S<     0:00 [kintegrityd]
    23 ?        S<     0:00 [bioset]
    24 ?        S<     0:00 [bioset]
    25 ?        S<     0:00 [bioset]
    26 ?        S<     0:00 [kblockd]
    27 ?        S<     0:00 [md]
    28 ?        S<     0:00 [edac-poller]
    29 ?        S<     0:00 [watchdogd]
    35 ?        S      0:00 [kswapd0]
    36 ?        SN     0:00 [ksmd]
    37 ?        SN     0:01 [khugepaged]
    38 ?        S<     0:00 [crypto]
    46 ?        S<     0:00 [kthrotld]
    48 ?        S<     0:00 [kmpath_rdacd]
    49 ?        S<     0:00 [kaluad]
    51 ?        S<     0:00 [kpsmoused]
    53 ?        S<     0:00 [ipv6_addrconf]
    66 ?        S<     0:00 [deferwq]
    99 ?        S      0:00 [kauditd]
   710 ?        S<     0:00 [ata_sff]
   720 ?        S      0:00 [scsi_eh_0]
   725 ?        S<     0:00 [scsi_tmf_0]
   734 ?        S      0:00 [scsi_eh_1]
   743 ?        S<     0:00 [scsi_tmf_1]
   760 ?        S<     0:00 [mpt_poll_0]
   763 ?        S<     0:00 [mpt/0]
   814 ?        S      0:00 [scsi_eh_2]
   824 ?        S<     0:00 [scsi_tmf_2]
   951 ?        S<     0:00 [ttm_swap]
   955 ?        S      0:00 [irq/16-vmwgfx]
  1778 ?        S<     0:00 [nfit]
  2413 ?        S      0:00 [scsi_eh_3]
  2425 ?        S<     0:00 [scsi_tmf_3]
  2428 ?        S      0:00 [scsi_eh_4]
  2432 ?        S<     0:00 [scsi_tmf_4]
  2436 ?        S      0:00 [scsi_eh_5]
  2440 ?        S<     0:00 [scsi_tmf_5]
  2445 ?        S      0:00 [scsi_eh_6]
  2453 ?        S<     0:00 [scsi_tmf_6]
  2457 ?        S      0:00 [scsi_eh_7]
  2464 ?        S<     0:00 [scsi_tmf_7]
  2466 ?        S      0:00 [scsi_eh_8]
  2467 ?        S<     0:00 [scsi_tmf_8]
  2468 ?        S      0:00 [scsi_eh_9]
  2469 ?        S<     0:00 [scsi_tmf_9]
  2470 ?        S      0:00 [scsi_eh_10]
  2471 ?        S<     0:00 [scsi_tmf_10]
  2472 ?        S      0:00 [scsi_eh_11]
  2473 ?        S<     0:00 [scsi_tmf_11]
  2474 ?        S      0:00 [scsi_eh_12]
  2476 ?        S<     0:00 [scsi_tmf_12]
  2493 ?        S      0:00 [scsi_eh_13]
  2495 ?        S<     0:00 [scsi_tmf_13]
  2501 ?        S      0:00 [scsi_eh_14]
  2503 ?        S<     0:00 [scsi_tmf_14]
  2513 ?        S      0:00 [scsi_eh_15]
  2514 ?        S<     0:00 [scsi_tmf_15]
  2516 ?        S      0:00 [scsi_eh_16]
  2521 ?        S<     0:00 [scsi_tmf_16]
  2525 ?        S      0:00 [scsi_eh_17]
  2526 ?        S<     0:00 [scsi_tmf_17]
  2529 ?        S      0:00 [scsi_eh_18]
  2534 ?        S<     0:00 [scsi_tmf_18]
  2542 ?        S      0:00 [scsi_eh_19]
  2548 ?        S<     0:00 [scsi_tmf_19]
  2550 ?        S      0:00 [scsi_eh_20]
  2554 ?        S<     0:00 [scsi_tmf_20]
  2555 ?        S      0:00 [scsi_eh_21]
  2561 ?        S<     0:00 [scsi_tmf_21]
  2566 ?        S      0:00 [scsi_eh_22]
  2576 ?        S<     0:00 [scsi_tmf_22]
  2577 ?        S      0:00 [scsi_eh_23]
  2584 ?        S<     0:00 [scsi_tmf_23]
  2589 ?        S      0:00 [scsi_eh_24]
  2600 ?        S<     0:00 [scsi_tmf_24]
  2604 ?        S      0:00 [scsi_eh_25]
  2608 ?        S<     0:00 [scsi_tmf_25]
  2611 ?        S      0:00 [scsi_eh_26]
  2619 ?        S<     0:00 [scsi_tmf_26]
  2627 ?        S      0:00 [scsi_eh_27]
  2635 ?        S<     0:00 [scsi_tmf_27]
  2643 ?        S      0:00 [scsi_eh_28]
  2646 ?        S<     0:00 [scsi_tmf_28]
  2650 ?        S      0:00 [scsi_eh_29]
  2656 ?        S<     0:00 [scsi_tmf_29]
  2666 ?        S      0:00 [scsi_eh_30]
  2673 ?        S<     0:00 [scsi_tmf_30]
  2678 ?        S      0:00 [scsi_eh_31]
  2687 ?        S<     0:00 [scsi_tmf_31]
  2694 ?        S      0:00 [scsi_eh_32]
  2705 ?        S<     0:00 [scsi_tmf_32]
  3405 ?        S<     0:00 [kdmflush]
  3406 ?        S<     0:00 [bioset]
  3420 ?        S<     0:00 [kdmflush]
  3423 ?        S<     0:00 [bioset]
  3442 ?        S<     0:00 [bioset]
  3448 ?        S<     0:00 [xfsalloc]
  3454 ?        S<     0:00 [xfs_mru_cache]
  3456 ?        S<     0:00 [xfs-buf/dm-0]
  3458 ?        S<     0:00 [xfs-data/dm-0]
  3460 ?        S<     0:00 [xfs-conv/dm-0]
  3461 ?        S<     0:00 [xfs-cil/dm-0]
  3462 ?        S<     0:00 [xfs-reclaim/dm-]
  3463 ?        S<     0:00 [xfs-log/dm-0]
  3464 ?        S<     0:00 [xfs-eofblocks/d]
  3465 ?        S      0:01 [xfsaild/dm-0]
  3467 ?        S<     0:00 [kworker/0:1H]
  3538 ?        S<     0:00 [kworker/1:1H]
  3541 ?        Ss     0:00 /usr/lib/systemd/systemd-journald
  3565 ?        Ss     0:00 /usr/sbin/lvmetad -f
  3578 ?        Ss     0:01 /usr/lib/systemd/systemd-udevd
  5652 ?        S<     0:00 [xfs-buf/sda1]
  5661 ?        S<     0:00 [xfs-data/sda1]
  5664 ?        S<     0:00 [xfs-conv/sda1]
  5671 ?        S<     0:00 [xfs-cil/sda1]
  5672 ?        S<     0:00 [xfs-reclaim/sda]
  5681 ?        S<     0:00 [xfs-log/sda1]
  5685 ?        S<     0:00 [xfs-eofblocks/s]
  5689 ?        S      0:00 [xfsaild/sda1]
  6978 ?        S<     0:00 [rpciod]
  6979 ?        S<     0:00 [xprtiod]
  6985 ?        S<sl   0:00 /sbin/auditd
  6987 ?        S<sl   0:00 /sbin/audispd
  6989 ?        S<     0:00 /usr/sbin/sedispatch
  7011 ?        Ss     0:00 /usr/sbin/smartd -n -q never
  7013 ?        Ssl    0:01 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
  7016 ?        Ss     0:00 /sbin/rpcbind -w
  7019 ?        Ssl    0:00 /usr/libexec/accounts-daemon
  7020 ?        Ssl    0:00 /usr/libexec/udisks2/udisksd
  7021 ?        Ss     0:02 /sbin/rngd -f
  7023 ?        Ss     0:00 /usr/sbin/irqbalance --foreground
  7029 ?        Ssl    0:02 /usr/lib/polkit-1/polkitd --no-debug
  7030 ?        Ss     0:00 /usr/lib/systemd/systemd-logind
  7032 ?        SNsl   0:00 /usr/libexec/rtkit-daemon
  7035 ?        Ss     0:00 /usr/bin/lsmd -d
  7036 ?        Ss     0:00 /usr/sbin/abrtd -d -s
  7037 ?        Ss     0:00 /usr/bin/abrt-watch-log -F Backtrace /var/log/Xorg.0.log -- /usr/bin/abrt-dump-xorg -xD
  7039 ?        Ss     0:00 /usr/bin/abrt-watch-log -F BUG: WARNING: at WARNING: CPU: INFO: possible recursive locking detected ernel BUG at list_del corruption list_add corruption do_IRQ: 
  7040 ?        SNs    0:00 /usr/sbin/alsactl -s -n 19 -c -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --initfile=/lib/alsa/init/00main rdaemon
  7045 ?        Ss     0:00 avahi-daemon: running [linux.local]
  7046 ?        Ss     0:00 /usr/bin/VGAuthService -s
  7047 ?        Ssl    0:03 /usr/bin/vmtoolsd
  7049 ?        Ssl    0:00 /usr/sbin/ModemManager
  7077 ?        Ss     0:00 /usr/sbin/mcelog --ignorenodev --daemon --syslog
  7084 ?        S      0:00 /bin/bash /usr/sbin/ksmtuned
  7089 ?        S      0:00 avahi-daemon: chroot helper
  7110 ?        Ssl    0:00 /usr/sbin/gssproxy -D
  7112 ?        Ssl    0:00 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
  7169 ?        Ssl    0:00 /usr/sbin/NetworkManager --no-daemon
  7507 ?        Ss     0:00 /usr/sbin/cupsd -f
  7514 ?        Ss     0:00 /usr/sbin/sshd -D
  7515 ?        Ssl    0:00 /usr/bin/python2 -Es /usr/sbin/tuned -l -P
  7516 ?        Ssl    0:00 /usr/sbin/rsyslogd -n
  7520 ?        Ssl    0:00 /usr/sbin/libvirtd
  7528 ?        Ss     0:00 /usr/bin/rhsmcertd
  7534 ?        Ss     0:00 /usr/sbin/atd -f
  7535 ?        Ss     0:00 /usr/sbin/crond -n
  7536 ?        Ssl    0:00 /usr/sbin/gdm
  7539 ?        Ss     0:00 rhnsd
  7679 tty1     Ssl+   0:11 /usr/bin/X :0 -background none -noreset -audit 4 -verbose -auth /run/gdm/auth-for-gdm-M3quOG/database -seat seat0 vt1
  7735 ?        Ss     0:00 /usr/libexec/postfix/master -w
  7756 ?        S      0:00 pickup -l -t unix -u
  7757 ?        S      0:00 qmgr -l -t unix -u
  8005 ?        S      0:00 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper
  8006 ?        S      0:00 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper
  8112 ?        Ssl    0:00 /usr/libexec/upowerd
  8176 ?        Ssl    0:00 /usr/libexec/packagekitd
  8177 ?        Ssl    0:00 /usr/libexec/boltd
  8201 ?        Ss     0:00 /usr/sbin/wpa_supplicant -u -f /var/log/wpa_supplicant.log -c /etc/wpa_supplicant/wpa_supplicant.conf -P /var/run/wpa_supplicant.pid
  8265 ?        Ssl    0:00 /usr/libexec/colord
  8335 ?        S      0:00 [kworker/1:3]
  8379 ?        Sl     0:00 gdm-session-worker [pam/gdm-password]
  8394 ?        Sl     0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
  8399 ?        Ssl    0:00 /usr/libexec/gnome-session-binary --session gnome-classic
  8408 ?        S      0:00 dbus-launch --sh-syntax --exit-with-session
  8409 ?        Ssl    0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
  8482 ?        Sl     0:00 /usr/libexec/gvfsd
  8487 ?        Sl     0:00 /usr/libexec/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
  8589 ?        Ss     0:00 /usr/bin/ssh-agent /bin/sh -c exec -l /bin/bash -c "env GNOME_SHELL_SESSION_MODE=classic gnome-session --session gnome-classic"
  8607 ?        Sl     0:00 /usr/libexec/at-spi-bus-launcher
  8612 ?        Sl     0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
  8615 ?        Sl     0:00 /usr/libexec/at-spi2-registryd --use-gnome-session
  8646 ?        Sl     0:17 /usr/bin/gnome-shell
  8656 ?        S<l    0:00 /usr/bin/pulseaudio --start --log-target=syslog
  8672 ?        Sl     0:00 ibus-daemon --xim --panel disable
  8676 ?        Sl     0:00 /usr/libexec/ibus-dconf
  8680 ?        Sl     0:00 /usr/libexec/ibus-x11 --kill-daemon
  8683 ?        Sl     0:00 /usr/libexec/ibus-portal
  8692 ?        Sl     0:00 /usr/libexec/xdg-permission-store
  8697 ?        Sl     0:00 /usr/libexec/gnome-shell-calendar-server
  8700 ?        Ssl    0:00 /usr/libexec/geoclue -t 5
  8714 ?        Sl     0:00 /usr/libexec/evolution-source-registry
  8718 ?        Sl     0:00 /usr/libexec/mission-control-5
  8721 ?        Sl     0:00 /usr/libexec/gvfs-udisks2-volume-monitor
  8726 ?        Sl     0:00 /usr/libexec/goa-daemon
  8729 ?        Sl     0:00 /usr/libexec/gvfs-mtp-volume-monitor
  8737 ?        Sl     0:00 /usr/libexec/gvfs-goa-volume-monitor
  8785 ?        Sl     0:00 /usr/libexec/goa-identity-service
  8793 ?        Sl     0:00 /usr/libexec/gvfs-afc-volume-monitor
  8799 ?        Sl     0:00 /usr/libexec/gvfs-gphoto2-volume-monitor
  8807 ?        Sl     0:00 /usr/libexec/gsd-power
  8809 ?        Sl     0:00 /usr/libexec/gsd-print-notifications
  8814 ?        Sl     0:00 /usr/libexec/gsd-rfkill
  8820 ?        Sl     0:00 /usr/libexec/gsd-screensaver-proxy
  8822 ?        Sl     0:00 /usr/libexec/gsd-sharing
  8828 ?        Sl     0:00 /usr/libexec/gsd-sound
  8830 ?        Sl     0:00 /usr/libexec/gsd-xsettings
  8833 ?        Sl     0:00 /usr/libexec/gsd-wacom
  8835 ?        Sl     0:00 /usr/libexec/gsd-smartcard
  8838 ?        Sl     0:00 /usr/libexec/gsd-account
  8849 ?        Sl     0:00 /usr/libexec/gsd-a11y-settings
  8850 ?        Sl     0:00 /usr/libexec/gsd-clipboard
  8853 ?        Sl     0:00 /usr/libexec/gsd-color
  8854 ?        Sl     0:00 /usr/libexec/gsd-datetime
  8855 ?        Sl     0:00 /usr/libexec/gsd-housekeeping
  8858 ?        Sl     0:00 /usr/libexec/gsd-keyboard
  8861 ?        Sl     0:00 /usr/libexec/gsd-media-keys
  8866 ?        Sl     0:00 /usr/libexec/gsd-mouse
  8897 ?        Sl     0:00 /usr/libexec/gsd-printer
  8909 ?        Sl     0:00 nautilus-desktop --force
  8931 ?        Sl     0:00 /usr/libexec/evolution-calendar-factory
  8932 ?        Sl     0:00 /usr/libexec/gvfsd-trash --spawner :1.3 /org/gtk/gvfs/exec_spaw/0
  8948 ?        Sl     0:00 rhsm-icon
  8950 ?        Sl     0:00 /usr/libexec/gsd-disk-utility-notify
  8962 ?        S      0:00 /usr/bin/seapplet
  8964 ?        Sl     0:01 /usr/bin/gnome-software --gapplication-service
  8968 ?        Sl     0:00 /usr/libexec/evolution-calendar-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx8931x2 --own-path /org/gno
  8975 ?        S      0:00 /usr/libexec/gconfd-2
  8989 ?        Sl     0:00 /usr/libexec/dconf-service
  8990 ?        Sl     0:00 /usr/libexec/evolution-addressbook-factory
  8992 ?        Sl     0:00 /usr/libexec/ibus-engine-simple
  9000 ?        SNl    0:00 /usr/libexec/tracker-extract
  9014 ?        SNl    0:00 /usr/libexec/tracker-miner-apps
  9018 ?        SNl    0:00 /usr/libexec/tracker-miner-fs
  9025 ?        SNl    0:00 /usr/libexec/tracker-miner-user-guides
  9038 ?        Sl     0:00 /usr/libexec/evolution-addressbook-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx8990x2 --own-path /o
  9057 ?        Sl     0:00 abrt-applet
  9072 ?        Sl     0:03 /usr/bin/vmtoolsd -n vmusr
  9078 ?        Sl     0:00 /usr/libexec/tracker-store
  9238 ?        Ssl    0:00 /usr/libexec/fwupd/fwupd
  9247 ?        Dl     0:04 /usr/libexec/gnome-terminal-server
  9254 ?        S      0:00 gnome-pty-helper
  9255 pts/0    Ss     0:00 bash
  9521 ?        S      0:00 [kworker/u256:0]
  9781 ?        S      0:00 [kworker/0:1]
  9868 ?        Sl     0:00 /usr/libexec/gvfsd-metadata
  9900 ?        S      0:00 [kworker/u256:2]
  9998 ?        S      0:00 [kworker/1:1]
 10076 ?        R      0:00 [kworker/0:0]
 10103 ?        S      0:00 [kworker/1:0]
 10120 ?        S      0:00 [kworker/u256:1]
 10197 ?        S      0:00 sleep 60
 10211 pts/0    R+     0:00 ps ax

[cxg@localhost ~]$ ps -A ##显示所有进程

  PID TTY          TIME CMD
     1 ?        00:00:03 systemd
     2 ?        00:00:00 kthreadd
     3 ?        00:00:00 ksoftirqd/0
     5 ?        00:00:00 kworker/0:0H
     7 ?        00:00:00 migration/0
     8 ?        00:00:00 rcu_bh
     9 ?        00:00:02 rcu_sched
    10 ?        00:00:00 lru-add-drain
    11 ?        00:00:00 watchdog/0
    12 ?        00:00:00 watchdog/1
    13 ?        00:00:00 migration/1
    14 ?        00:00:00 ksoftirqd/1
    16 ?        00:00:00 kworker/1:0H
    18 ?        00:00:00 kdevtmpfs
    19 ?        00:00:00 netns
    20 ?        00:00:00 khungtaskd
    21 ?        00:00:00 writeback
    22 ?        00:00:00 kintegrityd
    23 ?        00:00:00 bioset
    24 ?        00:00:00 bioset
    25 ?        00:00:00 bioset
    26 ?        00:00:00 kblockd
    27 ?        00:00:00 md
    28 ?        00:00:00 edac-poller
    29 ?        00:00:00 watchdogd
    35 ?        00:00:00 kswapd0
    36 ?        00:00:00 ksmd
    37 ?        00:00:01 khugepaged
    38 ?        00:00:00 crypto
    46 ?        00:00:00 kthrotld
    48 ?        00:00:00 kmpath_rdacd
    49 ?        00:00:00 kaluad
    51 ?        00:00:00 kpsmoused
    53 ?        00:00:00 ipv6_addrconf
    66 ?        00:00:00 deferwq
    99 ?        00:00:00 kauditd
   710 ?        00:00:00 ata_sff
   720 ?        00:00:00 scsi_eh_0
   725 ?        00:00:00 scsi_tmf_0
   734 ?        00:00:00 scsi_eh_1
   743 ?        00:00:00 scsi_tmf_1
   760 ?        00:00:00 mpt_poll_0
   763 ?        00:00:00 mpt/0
   814 ?        00:00:00 scsi_eh_2
   824 ?        00:00:00 scsi_tmf_2
   951 ?        00:00:00 ttm_swap
   955 ?        00:00:00 irq/16-vmwgfx
  1778 ?        00:00:00 nfit
  2413 ?        00:00:00 scsi_eh_3
  2425 ?        00:00:00 scsi_tmf_3
  2428 ?        00:00:00 scsi_eh_4
  2432 ?        00:00:00 scsi_tmf_4
  2436 ?        00:00:00 scsi_eh_5
  2440 ?        00:00:00 scsi_tmf_5
  2445 ?        00:00:00 scsi_eh_6
  2453 ?        00:00:00 scsi_tmf_6
  2457 ?        00:00:00 scsi_eh_7
  2464 ?        00:00:00 scsi_tmf_7
  2466 ?        00:00:00 scsi_eh_8
  2467 ?        00:00:00 scsi_tmf_8
  2468 ?        00:00:00 scsi_eh_9
  2469 ?        00:00:00 scsi_tmf_9
  2470 ?        00:00:00 scsi_eh_10
  2471 ?        00:00:00 scsi_tmf_10
  2472 ?        00:00:00 scsi_eh_11
  2473 ?        00:00:00 scsi_tmf_11
  2474 ?        00:00:00 scsi_eh_12
  2476 ?        00:00:00 scsi_tmf_12
  2493 ?        00:00:00 scsi_eh_13
  2495 ?        00:00:00 scsi_tmf_13
  2501 ?        00:00:00 scsi_eh_14
  2503 ?        00:00:00 scsi_tmf_14
  2513 ?        00:00:00 scsi_eh_15
  2514 ?        00:00:00 scsi_tmf_15
  2516 ?        00:00:00 scsi_eh_16
  2521 ?        00:00:00 scsi_tmf_16
  2525 ?        00:00:00 scsi_eh_17
  2526 ?        00:00:00 scsi_tmf_17
  2529 ?        00:00:00 scsi_eh_18
  2534 ?        00:00:00 scsi_tmf_18
  2542 ?        00:00:00 scsi_eh_19
  2548 ?        00:00:00 scsi_tmf_19
  2550 ?        00:00:00 scsi_eh_20
  2554 ?        00:00:00 scsi_tmf_20
  2555 ?        00:00:00 scsi_eh_21
  2561 ?        00:00:00 scsi_tmf_21
  2566 ?        00:00:00 scsi_eh_22
  2576 ?        00:00:00 scsi_tmf_22
  2577 ?        00:00:00 scsi_eh_23
  2584 ?        00:00:00 scsi_tmf_23
  2589 ?        00:00:00 scsi_eh_24
  2600 ?        00:00:00 scsi_tmf_24
  2604 ?        00:00:00 scsi_eh_25
  2608 ?        00:00:00 scsi_tmf_25
  2611 ?        00:00:00 scsi_eh_26
  2619 ?        00:00:00 scsi_tmf_26
  2627 ?        00:00:00 scsi_eh_27
  2635 ?        00:00:00 scsi_tmf_27
  2643 ?        00:00:00 scsi_eh_28
  2646 ?        00:00:00 scsi_tmf_28
  2650 ?        00:00:00 scsi_eh_29
  2656 ?        00:00:00 scsi_tmf_29
  2666 ?        00:00:00 scsi_eh_30
  2673 ?        00:00:00 scsi_tmf_30
  2678 ?        00:00:00 scsi_eh_31
  2687 ?        00:00:00 scsi_tmf_31
  2694 ?        00:00:00 scsi_eh_32
  2705 ?        00:00:00 scsi_tmf_32
  3405 ?        00:00:00 kdmflush
  3406 ?        00:00:00 bioset
  3420 ?        00:00:00 kdmflush
  3423 ?        00:00:00 bioset
  3442 ?        00:00:00 bioset
  3448 ?        00:00:00 xfsalloc
  3454 ?        00:00:00 xfs_mru_cache
  3456 ?        00:00:00 xfs-buf/dm-0
  3458 ?        00:00:00 xfs-data/dm-0
  3460 ?        00:00:00 xfs-conv/dm-0
  3461 ?        00:00:00 xfs-cil/dm-0
  3462 ?        00:00:00 xfs-reclaim/dm-
  3463 ?        00:00:00 xfs-log/dm-0
  3464 ?        00:00:00 xfs-eofblocks/d
  3465 ?        00:00:01 xfsaild/dm-0
  3467 ?        00:00:00 kworker/0:1H
  3538 ?        00:00:00 kworker/1:1H
  3541 ?        00:00:00 systemd-journal
  3565 ?        00:00:00 lvmetad
  3578 ?        00:00:01 systemd-udevd
  5652 ?        00:00:00 xfs-buf/sda1
  5661 ?        00:00:00 xfs-data/sda1
  5664 ?        00:00:00 xfs-conv/sda1
  5671 ?        00:00:00 xfs-cil/sda1
  5672 ?        00:00:00 xfs-reclaim/sda
  5681 ?        00:00:00 xfs-log/sda1
  5685 ?        00:00:00 xfs-eofblocks/s
  5689 ?        00:00:00 xfsaild/sda1
  6978 ?        00:00:00 rpciod
  6979 ?        00:00:00 xprtiod
  6985 ?        00:00:00 auditd
  6987 ?        00:00:00 audispd
  6989 ?        00:00:00 sedispatch
  7011 ?        00:00:00 smartd
  7013 ?        00:00:01 dbus-daemon
  7016 ?        00:00:00 rpcbind
  7019 ?        00:00:00 accounts-daemon
  7020 ?        00:00:00 udisksd
  7021 ?        00:00:02 rngd
  7023 ?        00:00:00 irqbalance
  7029 ?        00:00:02 polkitd
  7030 ?        00:00:00 systemd-logind
  7032 ?        00:00:00 rtkit-daemon
  7035 ?        00:00:00 lsmd
  7036 ?        00:00:00 abrtd
  7037 ?        00:00:00 abrt-watch-log
  7039 ?        00:00:00 abrt-watch-log
  7040 ?        00:00:00 alsactl
  7045 ?        00:00:00 avahi-daemon
  7046 ?        00:00:00 VGAuthService
  7047 ?        00:00:03 vmtoolsd
  7049 ?        00:00:00 ModemManager
  7077 ?        00:00:00 mcelog
  7084 ?        00:00:00 ksmtuned
  7089 ?        00:00:00 avahi-daemon
  7110 ?        00:00:00 gssproxy
  7112 ?        00:00:00 firewalld
  7169 ?        00:00:00 NetworkManager
  7507 ?        00:00:00 cupsd
  7514 ?        00:00:00 sshd
  7515 ?        00:00:00 tuned
  7516 ?        00:00:00 rsyslogd
  7520 ?        00:00:00 libvirtd
  7528 ?        00:00:00 rhsmcertd
  7534 ?        00:00:00 atd
  7535 ?        00:00:00 crond
  7536 ?        00:00:00 gdm
  7539 ?        00:00:00 rhnsd
  7679 tty1     00:00:11 X
  7735 ?        00:00:00 master
  7756 ?        00:00:00 pickup
  7757 ?        00:00:00 qmgr
  8005 ?        00:00:00 dnsmasq
  8006 ?        00:00:00 dnsmasq
  8112 ?        00:00:00 upowerd
  8176 ?        00:00:00 packagekitd
  8177 ?        00:00:00 boltd
  8201 ?        00:00:00 wpa_supplicant
  8265 ?        00:00:00 colord
  8335 ?        00:00:00 kworker/1:3
  8379 ?        00:00:00 gdm-session-wor
  8394 ?        00:00:00 gnome-keyring-d
  8399 ?        00:00:00 gnome-session-b
  8408 ?        00:00:00 dbus-launch
  8409 ?        00:00:00 dbus-daemon
  8482 ?        00:00:00 gvfsd
  8487 ?        00:00:00 gvfsd-fuse
  8589 ?        00:00:00 ssh-agent
  8607 ?        00:00:00 at-spi-bus-laun
  8612 ?        00:00:00 dbus-daemon
  8615 ?        00:00:00 at-spi2-registr
  8646 ?        00:00:17 gnome-shell
  8656 ?        00:00:00 pulseaudio
  8672 ?        00:00:00 ibus-daemon
  8676 ?        00:00:00 ibus-dconf
  8680 ?        00:00:00 ibus-x11
  8683 ?        00:00:00 ibus-portal
  8692 ?        00:00:00 xdg-permission-
  8697 ?        00:00:00 gnome-shell-cal
  8700 ?        00:00:00 geoclue
  8714 ?        00:00:00 evolution-sourc
  8718 ?        00:00:00 mission-control
  8721 ?        00:00:00 gvfs-udisks2-vo
  8726 ?        00:00:00 goa-daemon
  8729 ?        00:00:00 gvfs-mtp-volume
  8737 ?        00:00:00 gvfs-goa-volume
  8785 ?        00:00:00 goa-identity-se
  8793 ?        00:00:00 gvfs-afc-volume
  8799 ?        00:00:00 gvfs-gphoto2-vo
  8807 ?        00:00:00 gsd-power
  8809 ?        00:00:00 gsd-print-notif
  8814 ?        00:00:00 gsd-rfkill
  8820 ?        00:00:00 gsd-screensaver
  8822 ?        00:00:00 gsd-sharing
  8828 ?        00:00:00 gsd-sound
  8830 ?        00:00:00 gsd-xsettings
  8833 ?        00:00:00 gsd-wacom
  8835 ?        00:00:00 gsd-smartcard
  8838 ?        00:00:00 gsd-account
  8849 ?        00:00:00 gsd-a11y-settin
  8850 ?        00:00:00 gsd-clipboard
  8853 ?        00:00:00 gsd-color
  8854 ?        00:00:00 gsd-datetime
  8855 ?        00:00:00 gsd-housekeepin
  8858 ?        00:00:00 gsd-keyboard
  8861 ?        00:00:00 gsd-media-keys
  8866 ?        00:00:00 gsd-mouse
  8897 ?        00:00:00 gsd-printer
  8909 ?        00:00:00 nautilus-deskto
  8931 ?        00:00:00 evolution-calen
  8932 ?        00:00:00 gvfsd-trash
  8948 ?        00:00:00 rhsm-icon
  8950 ?        00:00:00 gsd-disk-utilit
  8962 ?        00:00:00 seapplet
  8964 ?        00:00:01 gnome-software
  8968 ?        00:00:00 evolution-calen
  8975 ?        00:00:00 gconfd-2
  8989 ?        00:00:00 dconf-service
  8990 ?        00:00:00 evolution-addre
  8992 ?        00:00:00 ibus-engine-sim
  9000 ?        00:00:00 tracker-extract
  9014 ?        00:00:00 tracker-miner-a
  9018 ?        00:00:00 tracker-miner-f
  9025 ?        00:00:00 tracker-miner-u
  9038 ?        00:00:00 evolution-addre
  9057 ?        00:00:00 abrt-applet
  9072 ?        00:00:03 vmtoolsd
  9078 ?        00:00:00 tracker-store
  9238 ?        00:00:00 fwupd
  9247 ?        00:00:04 gnome-terminal-
  9254 ?        00:00:00 gnome-pty-helpe
  9255 pts/0    00:00:00 bash
  9521 ?        00:00:00 kworker/u256:0
  9781 ?        00:00:00 kworker/0:1
  9868 ?        00:00:00 gvfsd-metadata
  9900 ?        00:00:00 kworker/u256:2
  9998 ?        00:00:00 kworker/1:1
 10076 ?        00:00:00 kworker/0:0
 10103 ?        00:00:00 kworker/1:0
 10120 ?        00:00:00 kworker/u256:1
 10197 ?        00:00:00 sleep
 10218 pts/0    00:00:00 ps

[cxg@localhost ~]$ top ##动态的查看进程

top - 18:27:30 up 57 min,  2 users,  load average: 0.01, 0.05, 0.06
Tasks: 269 total,   1 running, 268 sleeping,   0 stopped,   0 zombie
%Cpu(s):  1.5 us,  2.2 sy,  0.0 ni, 96.3 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :  2028116 total,   557632 free,   824448 used,   646036 buff/cache
KiB Swap:  2097148 total,  2097148 free,        0 used.   975524 avail Mem 

   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                                 
  7679 root      20   0  353464  34952  15912 S   5.0  1.7   0:15.39 X                                                                                                                       
  8646 cxg       20   0 3471780 146076  49388 S   4.0  7.2   0:19.88 gnome-shell                                                                                                             
  9247 cxg       20   0  681640  33188  17404 S   2.0  1.6   0:05.87 gnome-terminal-                                                                                                         
     9 root      20   0       0      0      0 S   0.3  0.0   0:02.75 rcu_sched                                                                                                               
   955 root     -51   0       0      0      0 S   0.3  0.0   0:00.82 irq/16-vmwgfx                                                                                                           
  8909 cxg       20   0 1004520  27220  17276 S   0.3  1.3   0:00.69 nautilus-deskto                                                                                                         
 10268 cxg       20   0  162152   2448   1592 R   0.3  0.1   0:00.05 top                                                                                                                     
     1 root      20   0  129528   6896   2824 S   0.0  0.3   0:03.43 systemd                                                                                                                 
     2 root      20   0       0      0      0 S   0.0  0.0   0:00.02 kthreadd                                                                                                                
     3 root      20   0       0      0      0 S   0.0  0.0   0:00.10 ksoftirqd/0                                                                                                             
     5 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/0:0H                                                                                                            
     7 root      rt   0       0      0      0 S   0.0  0.0   0:00.03 migration/0                                                                                                             
     8 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcu_bh                                                                                                                  
    10 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 lru-add-drain                                                                                                           
    11 root      rt   0       0      0      0 S   0.0  0.0   0:00.15 watchdog/0                                                                                                              
    12 root      rt   0       0      0      0 S   0.0  0.0   0:00.15 watchdog/1                                                                                                              
    13 root      rt   0       0      0      0 S   0.0  0.0   0:00.03 migration/1                                                                                                             
    14 root      20   0       0      0      0 S   0.0  0.0   0:00.19 ksoftirqd/1                                                                                                             
    16 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/1:0H                                                                                                            
    18 root      20   0       0      0      0 S   0.0  0.0   0:00.01 kdevtmpfs                                                                                                               
    19 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 netns                                                                                                                   
    20 root      20   0       0      0      0 S   0.0  0.0   0:00.00 khungtaskd                                                                                                              
    21 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 writeback                                                                                                               
    22 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kintegrityd                                                                                                             
    23 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 bioset                                                                                                                  
    24 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 bioset                                                                                                                  
    25 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 bioset                                                                                                                  
    26 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kblockd                                                                                                                 
    27 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 md                                                                                                                      
    28 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 edac-poller                                                                                                             
    29 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 watchdogd                                                                                                               
    35 root      20   0       0      0      0 S   0.0  0.0   0:00.00 kswapd0                                                                                                                 
    36 root      25   5       0      0      0 S   0.0  0.0   0:00.00 ksmd                                                                                                                    
    37 root      39  19       0      0      0 S   0.0  0.0   0:01.22 khugepaged                                                                                                              
    38 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 crypto                                

###键盘上按数字1可以分别显示每个cpu的动态信息

top - 18:28:43 up 58 min,  2 users,  load average: 0.08, 0.06, 0.05
Tasks: 269 total,   1 running, 268 sleeping,   0 stopped,   0 zombie
%Cpu0  :  0.3 us,  1.4 sy,  0.0 ni, 98.3 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
%Cpu1  :  0.7 us,  0.7 sy,  0.0 ni, 98.7 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :  2028116 total,   557388 free,   824820 used,   645908 buff/cache
KiB Swap:  2097148 total,  2097148 free,        0 used.   975276 avail Mem 

   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                                 
  7679 root      20   0  353464  34952  15912 S   2.3  1.7   0:16.41 X                                                                                                                       
  8646 cxg       20   0 3471608 146232  49388 S   1.7  7.2   0:20.75 gnome-shell                                                                                                             
  9247 cxg       20   0  681960  33448  17408 S   1.7  1.6   0:06.41 gnome-terminal-                                                                                                         
     9 root      20   0       0      0      0 S   0.3  0.0   0:02.81 rcu_sched                                                                                                               
  8615 cxg       20   0  233096   3944   3188 S   0.3  0.2   0:00.34 at-spi2-registr     

##现在我们设置一个任务进程:
[cxg@localhost ~]$ dd if=/dev/zero of =/dev/null & ##此命令是将设备/dev/zero的信息复制到dev/null(dd代表磁盘复制的意思,if=/dev/zero代表输入的信息来源,由于这个zero永远一直有,所以搬迁不完。of=/dev/null代表输出到类似回收站的黑洞,这个也永远填不满。&这个代表将这个命令在后台运行,如果不输入&,这个命令将一直也命令框运行,因为这个命令来源的信息无限多,输出的也无限多,所以一直要运行,就没法再继续输入命令操作了)
[cxg@localhost ~]$ top ##我们再进入进程

top - 18:38:48 up  1:08,  2 users,  load average: 1.03, 0.78, 0.40
Tasks: 271 total,   3 running, 268 sleeping,   0 stopped,   0 zombie
%Cpu(s): 21.7 us, 31.9 sy,  0.0 ni, 46.4 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :  2028116 total,   553764 free,   828320 used,   646032 buff/cache
KiB Swap:  2097148 total,  2097148 free,        0 used.   971728 avail Mem 

   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                                 
 10338 cxg       20   0  107996    620    524 R 100.0  0.0   7:20.72 dd                                                                                                                      
  8646 cxg       20   0 3471548 149116  49392 S   2.7  7.4   0:23.89 gnome-shell                                                                                                             
  7679 root      20   0  353464  34952  15912 S   2.3  1.7   0:19.83 X                                                                                                                       
  9247 cxg       20   0  681960  33448  17408 S   1.7  1.6   0:08.54 gnome-terminal-                                                                                                         
     9 root      20   0       0      0      0 S   0.7  0.0   0:03.28 rcu_sched                                                                                                               
  3465 root      20   0       0      0      0 R   0.3  0.0   0:02.13 xfsaild/dm-0                                                                                                            
  7047 root      20   0  320028   6744   5268 S   0.3  0.3   0:04.55 vmtoolsd                                                                                                                
  8409 cxg       20   0   69312   2656   1168 S   0.3  0.1   0:00.44 dbus-daemon                                                                                                             
  8615 cxg       20   0  233096   3944   3188 S   0.3  0.2   0:00.36 at-spi2-registr                                                                                                         
 10345 cxg       20   0  162152   2448   1592 R   0.3  0.1   0:01.23 top                                                                                                                     
     1 root      20   0  129528   6896   2824 S   0.0  0.3   0:03.46 systemd                                                                                                                 
     2 root      20   0       0      0      0 S   0.0  0.0   0:00.02 kthreadd                                                                                                                
     3 root      20   0       0      0      0 S   0.0  0.0   0:00.13 ksoftirqd/0                                                                                                             
     5 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/0:0H                                                                                                            
     7 root      rt   0       0      0      0 S   0.0  0.0   0:00.03 migration/0                                                                                                             
     8 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcu_bh                                                                                                                  
    10 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 lru-add-drain                                                                                                           
    11 root      rt   0       0      0      0 S   0.0  0.0   0:00.15 watchdog/0                                                                                                              
    12 root      rt   0       0      0      0 S   0.0  0.0   0:00.16 watchdog/1                                                                                                              
    13 root      rt   0       0      0      0 S   0.0  0.0   0:00.03 migration/1                                                                                                             
    14 root      20   0       0      0      0 S   0.0  0.0   0:00.19 ksoftirqd/1                                                                                                             
    16 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/1:0H                                                                                                            
    18 root      20   0       0      0      0 S   0.0  0.0   0:00.01 kdevtmpfs                                                                                                               
    19 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 netns                                                                                                                   
    20 root      20   0       0      0      0 S   0.0  0.0   0:00.00 khungtaskd                                                                                                              
    21 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 writeback                                                                                                               
    22 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kintegrityd                                                                                                             
    23 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 bioset                                                                                                                  
    24 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 bioset                                                                                                                  
    25 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 bioset                                                                                                                  
    26 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kblockd                                                                                                                 
    27 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 md                                                                                                                      
    28 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 edac-poller                                                                                                             
    29 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 watchdogd                                                                                                               
    35 root      20   0       0      0      0 S   0.0  0.0   0:00.00 kswapd0                   

##显而易见可以看到上面那条命令在一直运行,cpu占用率已经接近100%,在生产环节中,我们有时发现不太正常的cpu占用率,我们就对其要采取措施,所以接下来我们的措施:

我们可以在top上按k            
    top - 18:47:32 up  1:17,  2 users,  load average: 1.00, 0.96, 0.66
Tasks: 270 total,   2 running, 268 sleeping,   0 stopped,   0 zombie
%Cpu(s): 20.0 us, 30.2 sy,  0.0 ni, 49.8 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :  2028116 total,   551988 free,   830100 used,   646028 buff/cache
KiB Swap:  2097148 total,  2097148 free,        0 used.   969956 avail Mem 
PID to signal/kill [default pid = 10338] 
   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                                 
 10338 cxg       20   0  107996    620    524 R  99.7  0.0  16:03.70 dd                                                                                                                      
  7047 root      20   0  320028   6744   5268 S   0.7  0.3   0:04.97 vmtoolsd                                                                                                                
  7679 root      20   0  353464  34952  15912 S   0.3  1.7   0:21.23 X                                                                                 

##我们可以看到弹出来一行指令,这个PID to signal/kill[default pid =10338]中,我们可以看到通过信号传输到PID为10338的将他kill,此时我们再按回车


top - 18:47:32 up  1:17,  2 users,  load average: 1.00, 0.96, 0.66
Tasks: 270 total,   2 running, 268 sleeping,   0 stopped,   0 zombie
%Cpu(s): 20.0 us, 30.2 sy,  0.0 ni, 49.8 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :  2028116 total,   551988 free,   830100 used,   646028 buff/cache
KiB Swap:  2097148 total,  2097148 free,        0 used.   969956 avail Mem 
Send pid 10338 signal [15/sigterm] 
   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                                 
 10338 cxg       20   0  107996    620    524 R  99.7  0.0  16:03.70 dd                                                                                                                      
  7047 root      20   0  320028   6744   5268 S   0.7  0.3   0:04.97 vmtoolsd                                                                                                                
  7679 root      20   0  353464  34952  15912 S   0.3  1.7   0:21.23 X             

##继续回车后,我们可以看到刚才设置的命令已经被kill
进程管理_第3张图片
[cxg@localhost ~]$ ps ax|grep dd##过滤出来dd包含dd的进程,我们刚刚做的dd(磁盘复制也在里面倒数第二行)

    2 ?        S      0:00 [kthreadd]
    10 ?        S<     0:00 [lru-add-drain]
    53 ?        S<     0:00 [ipv6_addrconf]
  7013 ?        Ssl    0:01 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
  7039 ?        Ss     0:00 /usr/bin/abrt-watch-log -F BUG: WARNING: at WARNING: CPU: INFO: possible recursive locking detected ernel BUG at list_del corruption list_add corruption do_IRQ: stack overflow: ear stack overflow (cur: eneral protection fault nable to handle kernel ouble fault: RTNL: assertion failed eek! page_mapcount(page) went negative! adness at NETDEV WATCHDOG ysctl table check failed : nobody cared IRQ handler type mismatch Kernel panic - not syncing: Machine Check Exception: Machine check events logged divide error: bounds: coprocessor segment overrun: invalid TSS: segment not present: invalid opcode: alignment check: stack segment: fpu exception: simd exception: iret exception: /var/log/messages -- /usr/bin/abrt-dump-oops -xtD
  8409 ?        Ssl    0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
  8612 ?        Sl     0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
  8990 ?        Sl     0:00 /usr/libexec/evolution-addressbook-factory
  9038 ?        Sl     0:00 /usr/libexec/evolution-addressbook-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx8990x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/AddressBook/8990/2
 10967 pts/0    R      0:05 dd if=/dev/zero of=/dev/null
 10983 pts/1    S+     0:00 grep --color=auto dd

[cxg@localhost ~]$ ps axu

USER        PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root          1  0.0  0.3 129528  6912 ?        Ss   17:30   0:03 /usr/lib/systemd/systemd --switched-root --system --deserialize 22
root          2  0.0  0.0      0     0 ?        S    17:30   0:00 [kthreadd]
root          3  0.0  0.0      0     0 ?        S    17:30   0:00 [ksoftirqd/0]
root          5  0.0  0.0      0     0 ?        S<   17:30   0:00 [kworker/0:0H]
root          7  0.0  0.0      0     0 ?        S    17:30   0:00 [migration/0]
root          8  0.0  0.0      0     0 ?        S    17:30   0:00 [rcu_bh]
root          9  0.0  0.0      0     0 ?        R    17:30   0:04 [rcu_sched]
root         10  0.0  0.0      0     0 ?        S<   17:30   0:00 [lru-add-drain]
root         11  0.0  0.0      0     0 ?        S    17:30   0:00 [watchdog/0]
root         12  0.0  0.0      0     0 ?        S    17:30   0:00 [watchdog/1]
root         13  0.0  0.0      0     0 ?        S    17:30   0:00 [migration/1]
root         14  0.0  0.0      0     0 ?        S    17:30   0:00 [ksoftirqd/1]
root         16  0.0  0.0      0     0 ?        S<   17:30   0:00 [kworker/1:0H]
root         18  0.0  0.0      0     0 ?        S    17:30   0:00 [kdevtmpfs]
root         19  0.0  0.0      0     0 ?        S<   17:30   0:00 [netns]
root         20  0.0  0.0      0     0 ?        S    17:30   0:00 [khungtaskd]
root         21  0.0  0.0      0     0 ?        S<   17:30   0:00 [writeback]
root         22  0.0  0.0      0     0 ?        S<   17:30   0:00 [kintegrityd]
root         23  0.0  0.0      0     0 ?        S<   17:30   0:00 [bioset]
root         24  0.0  0.0      0     0 ?        S<   17:30   0:00 [bioset]
root         25  0.0  0.0      0     0 ?        S<   17:30   0:00 [bioset]
root         26  0.0  0.0      0     0 ?        S<   17:30   0:00 [kblockd]
root         27  0.0  0.0      0     0 ?        S<   17:30   0:00 [md]
root         28  0.0  0.0      0     0 ?        S<   17:30   0:00 [edac-poller]
root         29  0.0  0.0      0     0 ?        S<   17:30   0:00 [watchdogd]
root         35  0.0  0.0      0     0 ?        S    17:30   0:00 [kswapd0]
root         36  0.0  0.0      0     0 ?        SN   17:30   0:00 [ksmd]
root         37  0.0  0.0      0     0 ?        SN   17:30   0:01 [khugepaged]
root         38  0.0  0.0      0     0 ?        S<   17:30   0:00 [crypto]
root         46  0.0  0.0      0     0 ?        S<   17:30   0:00 [kthrotld]
root         48  0.0  0.0      0     0 ?        S<   17:30   0:00 [kmpath_rdacd]
root         49  0.0  0.0      0     0 ?        S<   17:30   0:00 [kaluad]
root         51  0.0  0.0      0     0 ?        S<   17:30   0:00 [kpsmoused]
root         53  0.0  0.0      0     0 ?        S<   17:30   0:00 [ipv6_addrconf]
root         66  0.0  0.0      0     0 ?        S<   17:30   0:00 [deferwq]
root         99  0.0  0.0      0     0 ?        S    17:30   0:00 [kauditd]
root        710  0.0  0.0      0     0 ?        S<   17:30   0:00 [ata_sff]
root        720  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_0]
root        725  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_0]
root        734  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_1]
root        743  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_1]
root        760  0.0  0.0      0     0 ?        S<   17:30   0:00 [mpt_poll_0]
root        763  0.0  0.0      0     0 ?        S<   17:30   0:00 [mpt/0]
root        814  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_2]
root        824  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_2]
root        951  0.0  0.0      0     0 ?        S<   17:30   0:00 [ttm_swap]
root        955  0.0  0.0      0     0 ?        S    17:30   0:01 [irq/16-vmwgfx]
root       1778  0.0  0.0      0     0 ?        S<   17:30   0:00 [nfit]
root       2413  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_3]
root       2425  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_3]
root       2428  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_4]
root       2432  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_4]
root       2436  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_5]
root       2440  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_5]
root       2445  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_6]
root       2453  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_6]
root       2457  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_7]
root       2464  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_7]
root       2466  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_8]
root       2467  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_8]
root       2468  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_9]
root       2469  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_9]
root       2470  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_10]
root       2471  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_10]
root       2472  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_11]
root       2473  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_11]
root       2474  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_12]
root       2476  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_12]
root       2493  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_13]
root       2495  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_13]
root       2501  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_14]
root       2503  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_14]
root       2513  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_15]
root       2514  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_15]
root       2516  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_16]
root       2521  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_16]
root       2525  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_17]
root       2526  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_17]
root       2529  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_18]
root       2534  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_18]
root       2542  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_19]
root       2548  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_19]
root       2550  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_20]
root       2554  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_20]
root       2555  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_21]
root       2561  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_21]
root       2566  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_22]
root       2576  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_22]
root       2577  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_23]
root       2584  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_23]
root       2589  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_24]
root       2600  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_24]
root       2604  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_25]
root       2608  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_25]
root       2611  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_26]
root       2619  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_26]
root       2627  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_27]
root       2635  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_27]
root       2643  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_28]
root       2646  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_28]
root       2650  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_29]
root       2656  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_29]
root       2666  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_30]
root       2673  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_30]
root       2678  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_31]
root       2687  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_31]
root       2694  0.0  0.0      0     0 ?        S    17:30   0:00 [scsi_eh_32]
root       2705  0.0  0.0      0     0 ?        S<   17:30   0:00 [scsi_tmf_32]
root       3405  0.0  0.0      0     0 ?        S<   17:30   0:00 [kdmflush]
root       3406  0.0  0.0      0     0 ?        S<   17:30   0:00 [bioset]
root       3420  0.0  0.0      0     0 ?        S<   17:30   0:00 [kdmflush]
root       3423  0.0  0.0      0     0 ?        S<   17:30   0:00 [bioset]
root       3442  0.0  0.0      0     0 ?        S<   17:30   0:00 [bioset]
root       3448  0.0  0.0      0     0 ?        S<   17:30   0:00 [xfsalloc]
root       3454  0.0  0.0      0     0 ?        S<   17:30   0:00 [xfs_mru_cache]
root       3456  0.0  0.0      0     0 ?        S<   17:30   0:00 [xfs-buf/dm-0]
root       3458  0.0  0.0      0     0 ?        S<   17:30   0:00 [xfs-data/dm-0]
root       3460  0.0  0.0      0     0 ?        S<   17:30   0:00 [xfs-conv/dm-0]
root       3461  0.0  0.0      0     0 ?        S<   17:30   0:00 [xfs-cil/dm-0]
root       3462  0.0  0.0      0     0 ?        S<   17:30   0:00 [xfs-reclaim/dm-]
root       3463  0.0  0.0      0     0 ?        S<   17:30   0:00 [xfs-log/dm-0]
root       3464  0.0  0.0      0     0 ?        S<   17:30   0:00 [xfs-eofblocks/d]
root       3465  0.0  0.0      0     0 ?        S    17:30   0:02 [xfsaild/dm-0]
root       3467  0.0  0.0      0     0 ?        S<   17:30   0:00 [kworker/0:1H]
root       3538  0.0  0.0      0     0 ?        S<   17:30   0:00 [kworker/1:1H]
root       3541  0.0  0.1  39808  4048 ?        Ss   17:30   0:00 /usr/lib/systemd/systemd-journald
root       3565  0.0  0.1 193628  3620 ?        Ss   17:30   0:00 /usr/sbin/lvmetad -f
root       3578  0.0  0.1  47092  3156 ?        Ss   17:30   0:01 /usr/lib/systemd/systemd-udevd
root       5652  0.0  0.0      0     0 ?        S<   17:30   0:00 [xfs-buf/sda1]
root       5661  0.0  0.0      0     0 ?        S<   17:30   0:00 [xfs-data/sda1]
root       5664  0.0  0.0      0     0 ?        S<   17:30   0:00 [xfs-conv/sda1]
root       5671  0.0  0.0      0     0 ?        S<   17:30   0:00 [xfs-cil/sda1]
root       5672  0.0  0.0      0     0 ?        S<   17:30   0:00 [xfs-reclaim/sda]
root       5681  0.0  0.0      0     0 ?        S<   17:30   0:00 [xfs-log/sda1]
root       5685  0.0  0.0      0     0 ?        S<   17:30   0:00 [xfs-eofblocks/s]
root       5689  0.0  0.0      0     0 ?        S    17:30   0:00 [xfsaild/sda1]
root       6978  0.0  0.0      0     0 ?        S<   17:30   0:00 [rpciod]
root       6979  0.0  0.0      0     0 ?        S<   17:30   0:00 [xprtiod]
root       6985  0.0  0.0  62044  1080 ?        S<sl 17:30   0:00 /sbin/auditd
root       6987  0.0  0.0  84552   880 ?        S<sl 17:30   0:00 /sbin/audispd
root       6989  0.0  0.0  55628  1404 ?        S<   17:30   0:00 /usr/sbin/sedispatch
root       7011  0.0  0.1  24492  2284 ?        Ss   17:30   0:00 /usr/sbin/smartd -n -q never
dbus       7013  0.0  0.2  70148  4244 ?        Ssl  17:30   0:01 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
rpc        7016  0.0  0.0  73648  1376 ?        Ss   17:30   0:00 /sbin/rpcbind -w
root       7019  0.0  0.2 396356  4092 ?        Ssl  17:30   0:00 /usr/libexec/accounts-daemon
root       7020  0.0  0.3 453480  6720 ?        Ssl  17:30   0:00 /usr/libexec/udisks2/udisksd
root       7021  0.0  0.1  90392  3204 ?        Ss   17:30   0:03 /sbin/rngd -f
root       7023  0.0  0.0  21676  1304 ?        Ss   17:30   0:01 /usr/sbin/irqbalance --foreground
polkitd    7029  0.0  0.8 616572 17132 ?        Ssl  17:30   0:02 /usr/lib/polkit-1/polkitd --no-debug
root       7030  0.0  0.0  26428  1840 ?        Ss   17:30   0:00 /usr/lib/systemd/systemd-logind
rtkit      7032  0.0  0.0 198792  1808 ?        SNsl 17:30   0:00 /usr/libexec/rtkit-daemon
libstor+   7035  0.0  0.0   8576   824 ?        Ss   17:30   0:00 /usr/bin/lsmd -d
root       7036  0.0  0.2 228056  5620 ?        Ss   17:30   0:00 /usr/sbin/abrtd -d -s
root       7037  0.0  0.2 225728  4824 ?        Ss   17:30   0:00 /usr/bin/abrt-watch-log -F Backtrace /var/log/Xorg.0.log -- /usr/bin/abrt-dump-xorg -xD
root       7039  0.0  0.2 225728  4824 ?        Ss   17:30   0:00 /usr/bin/abrt-watch-log -F BUG: WARNING: at WARNING: CPU: INFO: possible recursive locking detected ernel BUG at list_del c
root       7040  0.0  0.0  16892  1400 ?        SNs  17:30   0:00 /usr/sbin/alsactl -s -n 19 -c -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --initfile=/lib/alsa/init/00main rdaemon
avahi      7045  0.0  0.1  62144  2076 ?        Ss   17:30   0:00 avahi-daemon: running [linux.local]
root       7046  0.0  0.3  99568  6108 ?        Ss   17:30   0:00 /usr/bin/VGAuthService -s
root       7047  0.1  0.3 320028  6744 ?        Ssl  17:30   0:06 /usr/bin/vmtoolsd
root       7049  0.0  0.2 430576  5496 ?        Ssl  17:30   0:00 /usr/sbin/ModemManager
root       7077  0.0  0.0   6608   300 ?        Ss   17:30   0:00 /usr/sbin/mcelog --ignorenodev --daemon --syslog
root       7084  0.0  0.0 115304   960 ?        S    17:30   0:00 /bin/bash /usr/sbin/ksmtuned
avahi      7089  0.0  0.0  62144   396 ?        S    17:30   0:00 avahi-daemon: chroot helper
root       7110  0.0  0.0 207828  1480 ?        Ssl  17:30   0:00 /usr/sbin/gssproxy -D
root       7112  0.0  1.4 358192 29128 ?        Ssl  17:30   0:00 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
root       7169  0.0  0.4 478036  8816 ?        Ssl  17:30   0:00 /usr/sbin/NetworkManager --no-daemon
root       7507  0.0  0.2 199956  4444 ?        Ss   17:30   0:00 /usr/sbin/cupsd -f
root       7514  0.0  0.2 112756  4304 ?        Ss   17:30   0:00 /usr/sbin/sshd -D
root       7515  0.0  0.9 573824 19284 ?        Ssl  17:30   0:01 /usr/bin/python2 -Es /usr/sbin/tuned -l -P
root       7516  0.0  0.2 216408  5288 ?        Ssl  17:30   0:00 /usr/sbin/rsyslogd -n
root       7520  0.0  1.0 1005944 21424 ?       Ssl  17:30   0:00 /usr/sbin/libvirtd
root       7528  0.0  0.0 115708   688 ?        Ss   17:30   0:00 /usr/bin/rhsmcertd
root       7534  0.0  0.0  25904   944 ?        Ss   17:30   0:00 /usr/sbin/atd -f
root       7535  0.0  0.0 126284  1700 ?        Ss   17:30   0:00 /usr/sbin/crond -n
root       7536  0.0  0.3 481320  6676 ?        Ssl  17:30   0:00 /usr/sbin/gdm
root       7539  0.0  0.0 107940   300 ?        Ss   17:30   0:00 rhnsd
root       7679  0.3  1.7 353464 34952 tty1     Ssl+ 17:30   0:24 /usr/bin/X :0 -background none -noreset -audit 4 -verbose -auth /run/gdm/auth-for-gdm-M3quOG/database -seat seat0 vt1
root       7735  0.0  0.1  91624  2212 ?        Ss   17:30   0:00 /usr/libexec/postfix/master -w
postfix    7757  0.0  0.2  91796  4104 ?        S    17:30   0:00 qmgr -l -t unix -u
nobody     8005  0.0  0.0  53884  1108 ?        S    17:30   0:00 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_lease
root       8006  0.0  0.0  53856   372 ?        S    17:30   0:00 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_lease
root       8112  0.0  0.3 430252  7256 ?        Ssl  17:30   0:00 /usr/libexec/upowerd
root       8176  0.0  0.4 486776  8248 ?        Ssl  17:31   0:00 /usr/libexec/packagekitd
root       8177  0.0  0.2 398376  6008 ?        Ssl  17:31   0:00 /usr/libexec/boltd
root       8201  0.0  0.1  78560  3348 ?        Ss   17:31   0:00 /usr/sbin/wpa_supplicant -u -f /var/log/wpa_supplicant.log -c /etc/wpa_supplicant/wpa_supplicant.conf -P /var/run/wpa_suppl
colord     8265  0.0  0.3 419452  6228 ?        Ssl  17:31   0:00 /usr/libexec/colord
root       8379  0.0  0.2 535476  5664 ?        Sl   17:33   0:00 gdm-session-worker [pam/gdm-password]
cxg        8394  0.0  0.2 317320  5900 ?        Sl   17:33   0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
cxg        8399  0.0  0.4 884280  9444 ?        Ssl  17:33   0:00 /usr/libexec/gnome-session-binary --session gnome-classic
cxg        8408  0.0  0.0  58892   964 ?        S    17:33   0:00 dbus-launch --sh-syntax --exit-with-session
cxg        8409  0.0  0.1  69312  2656 ?        Ssl  17:33   0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
cxg        8482  0.0  0.1 388648  3956 ?        Sl   17:33   0:00 /usr/libexec/gvfsd
cxg        8487  0.0  0.2 417808  5444 ?        Sl   17:33   0:00 /usr/libexec/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
cxg        8589  0.0  0.0  72308   776 ?        Ss   17:33   0:00 /usr/bin/ssh-agent /bin/sh -c exec -l /bin/bash -c "env GNOME_SHELL_SESSION_MODE=classic gnome-session --session gnome-clas
cxg        8607  0.0  0.1 346752  3704 ?        Sl   17:33   0:00 /usr/libexec/at-spi-bus-launcher
cxg        8612  0.0  0.1  68400  2488 ?        Sl   17:33   0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
cxg        8615  0.0  0.1 233096  3944 ?        Sl   17:33   0:00 /usr/libexec/at-spi2-registryd --use-gnome-session
cxg        8646  0.4  7.2 3472576 147476 ?      Sl   17:33   0:30 /usr/bin/gnome-shell
cxg        8656  0.0  0.3 1285300 7244 ?        S<l  17:33   0:01 /usr/bin/pulseaudio --start --log-target=syslog
cxg        8672  0.0  0.2 453012  5384 ?        Sl   17:33   0:00 ibus-daemon --xim --panel disable
cxg        8676  0.0  0.1 375848  3584 ?        Sl   17:33   0:00 /usr/libexec/ibus-dconf
cxg        8680  0.0  0.6 464692 13568 ?        Sl   17:33   0:00 /usr/libexec/ibus-x11 --kill-daemon
cxg        8683  0.0  0.1 375848  3320 ?        Sl   17:33   0:00 /usr/libexec/ibus-portal
cxg        8692  0.0  0.1 364592  2656 ?        Sl   17:33   0:00 /usr/libexec/xdg-permission-store
cxg        8697  0.0  0.6 649684 13624 ?        Sl   17:33   0:00 /usr/libexec/gnome-shell-calendar-server
geoclue    8700  0.0  0.3 433424  6212 ?        Ssl  17:33   0:00 /usr/libexec/geoclue -t 5
cxg        8714  0.0  0.8 854136 18040 ?        Sl   17:33   0:00 /usr/libexec/evolution-source-registry
cxg        8718  0.0  0.4 485256  9676 ?        Sl   17:33   0:00 /usr/libexec/mission-control-5
cxg        8721  0.0  0.3 563256  7360 ?        Sl   17:33   0:00 /usr/libexec/gvfs-udisks2-volume-monitor
cxg        8726  0.0  1.2 101566676 25744 ?     Sl   17:33   0:00 /usr/libexec/goa-daemon
cxg        8729  0.0  0.1 391480  3376 ?        Sl   17:33   0:00 /usr/libexec/gvfs-mtp-volume-monitor
cxg        8737  0.0  0.1 371444  3128 ?        Sl   17:33   0:00 /usr/libexec/gvfs-goa-volume-monitor
cxg        8785  0.0  0.4 531980  8512 ?        Sl   17:33   0:00 /usr/libexec/goa-identity-service
cxg        8793  0.0  0.2 478400  4400 ?        Sl   17:33   0:00 /usr/libexec/gvfs-afc-volume-monitor
cxg        8799  0.0  0.1 400568  3624 ?        Sl   17:33   0:00 /usr/libexec/gvfs-gphoto2-volume-monitor
cxg        8807  0.0  0.7 705260 14656 ?        Sl   17:34   0:00 /usr/libexec/gsd-power
cxg        8809  0.0  0.2 438964  5524 ?        Sl   17:34   0:00 /usr/libexec/gsd-print-notifications
cxg        8814  0.0  0.2 456012  4972 ?        Sl   17:34   0:00 /usr/libexec/gsd-rfkill
cxg        8820  0.0  0.1 374072  2968 ?        Sl   17:34   0:00 /usr/libexec/gsd-screensaver-proxy
cxg        8822  0.0  0.3 558720  6960 ?        Sl   17:34   0:00 /usr/libexec/gsd-sharing
cxg        8828  0.0  0.2 454840  4740 ?        Sl   17:34   0:00 /usr/libexec/gsd-sound
cxg        8830  0.0  0.7 614992 14864 ?        Sl   17:34   0:00 /usr/libexec/gsd-xsettings
cxg        8833  0.0  0.6 622860 14108 ?        Sl   17:34   0:00 /usr/libexec/gsd-wacom
cxg        8835  0.0  0.2 472036  5032 ?        Sl   17:34   0:00 /usr/libexec/gsd-smartcard
cxg        8838  0.0  0.2 456656  5412 ?        Sl   17:34   0:00 /usr/libexec/gsd-account
cxg        8849  0.0  0.1 376328  3240 ?        Sl   17:34   0:00 /usr/libexec/gsd-a11y-settings
cxg        8850  0.0  0.6 464308 13364 ?        Sl   17:34   0:00 /usr/libexec/gsd-clipboard
cxg        8853  0.0  0.7 713904 14604 ?        Sl   17:34   0:00 /usr/libexec/gsd-color
cxg        8854  0.0  0.4 545772  8816 ?        Sl   17:34   0:00 /usr/libexec/gsd-datetime
cxg        8855  0.0  0.2 463216  5940 ?        Sl   17:34   0:00 /usr/libexec/gsd-housekeeping
cxg        8858  0.0  0.6 614084 13536 ?        Sl   17:34   0:00 /usr/libexec/gsd-keyboard
cxg        8861  0.0  0.7 1011680 15232 ?       Sl   17:34   0:00 /usr/libexec/gsd-media-keys
cxg        8866  0.0  0.1 376332  3228 ?        Sl   17:34   0:00 /usr/libexec/gsd-mouse
cxg        8897  0.0  0.3 608400  7768 ?        Sl   17:34   0:00 /usr/libexec/gsd-printer
cxg        8909  0.0  1.3 1004520 27220 ?       Sl   17:34   0:00 nautilus-desktop --force
cxg        8931  0.0  0.8 916316 17984 ?        Sl   17:34   0:00 /usr/libexec/evolution-calendar-factory
cxg        8932  0.0  0.2 464652  4592 ?        Sl   17:34   0:00 /usr/libexec/gvfsd-trash --spawner :1.3 /org/gtk/gvfs/exec_spaw/0
cxg        8948  0.0  0.6 468436 13416 ?        Sl   17:34   0:00 rhsm-icon
cxg        8950  0.0  0.1 273044  3264 ?        Sl   17:34   0:00 /usr/libexec/gsd-disk-utility-notify
cxg        8962  0.0  0.4 309880  9680 ?        S    17:34   0:00 /usr/bin/seapplet
cxg        8964  0.0  2.5 1302044 52136 ?       Sl   17:34   0:01 /usr/bin/gnome-software --gapplication-service
cxg        8968  0.0  0.8 1142924 18060 ?       Sl   17:34   0:00 /usr/libexec/evolution-calendar-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backe
cxg        8975  0.0  0.1 181792  3112 ?        S    17:34   0:00 /usr/libexec/gconfd-2
cxg        8989  0.0  0.1 187384  2860 ?        Sl   17:34   0:00 /usr/libexec/dconf-service
cxg        8990  0.0  0.7 903044 15412 ?        Sl   17:34   0:00 /usr/libexec/evolution-addressbook-factory
cxg        8992  0.0  0.1 302184  3452 ?        Sl   17:34   0:00 /usr/libexec/ibus-engine-simple
cxg        9000  0.0  0.6 807984 13064 ?        SNl  17:34   0:00 /usr/libexec/tracker-extract
cxg        9014  0.0  0.6 632100 12368 ?        SNl  17:34   0:00 /usr/libexec/tracker-miner-apps
cxg        9018  0.0  0.6 649036 13576 ?        SNl  17:34   0:00 /usr/libexec/tracker-miner-fs
cxg        9025  0.0  0.4 561752  9776 ?        SNl  17:34   0:00 /usr/libexec/tracker-miner-user-guides
cxg        9038  0.0  1.1 1119744 23116 ?       Sl   17:34   0:00 /usr/libexec/evolution-addressbook-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Ba
cxg        9057  0.0  0.8 529844 16588 ?        Sl   17:34   0:00 abrt-applet
cxg        9072  0.1  1.2 566668 26300 ?        Sl   17:34   0:06 /usr/bin/vmtoolsd -n vmusr
cxg        9078  0.0  0.5 590340 12008 ?        Sl   17:34   0:00 /usr/libexec/tracker-store
root       9238  0.0  0.6 586136 12584 ?        Ssl  17:34   0:00 /usr/libexec/fwupd/fwupd
cxg        9247  0.1  1.5 683208 32064 ?        Rl   17:34   0:11 /usr/libexec/gnome-terminal-server
cxg        9254  0.0  0.0   8532   744 ?        S    17:34   0:00 gnome-pty-helper
cxg        9255  0.0  0.1 116348  2980 pts/0    Ss+  17:34   0:00 bash
root       9521  0.0  0.0      0     0 ?        S    17:40   0:00 [kworker/u256:0]
cxg        9868  0.0  0.1 317740  3304 ?        Sl   18:06   0:00 /usr/libexec/gvfsd-metadata
root      10639  0.0  0.0      0     0 ?        S    18:58   0:00 [kworker/0:2]
root      10642  0.0  0.0      0     0 ?        S    18:59   0:00 [kworker/1:2]
root      10710  0.0  0.0      0     0 ?        S    19:01   0:00 [kworker/u256:1]
root      10753  0.0  0.0      0     0 ?        S    19:05   0:00 [kworker/0:0]
root      10804  0.0  0.0      0     0 ?        S    19:10   0:00 [kworker/1:1]
postfix   10827  0.0  0.2  91728  4084 ?        S    19:10   0:00 pickup -l -t unix -u
root      10844  0.0  0.0      0     0 ?        S    19:13   0:00 [kworker/0:1]
cxg       10896  0.0  0.1 116348  2976 pts/1    Ss   19:13   0:00 bash
cxg       10967 99.8  0.0 107996   620 pts/0    R    19:14   1:42 dd if=/dev/zero of=/dev/null
root      10990  0.0  0.0      0     0 ?        R    19:15   0:00 [kworker/1:0]
root      10998  0.0  0.0 107952   356 ?        S    19:15   0:00 sleep 60
cxg       10999  0.0  0.0 155360  1884 pts/1    R+   19:16   0:00 ps axu

[cxg@localhost ~]$ ps ax -o pid,comm,%cpu##只显示出pid,comm(程序名称),%cpu(cpu)这几项

 PID COMMAND         %CPU
     1 systemd          0.0
     2 kthreadd         0.0
     3 ksoftirqd/0      0.0
     5 kworker/0:0H     0.0
     7 migration/0      0.0
     8 rcu_bh           0.0
     9 rcu_sched        0.0
    10 lru-add-drain    0.0
    11 watchdog/0       0.0
    12 watchdog/1       0.0
    13 migration/1      0.0
    14 ksoftirqd/1      0.0
    16 kworker/1:0H     0.0
    18 kdevtmpfs        0.0
    19 netns            0.0
    20 khungtaskd       0.0
    21 writeback        0.0
    22 kintegrityd      0.0
    23 bioset           0.0
    24 bioset           0.0
    25 bioset           0.0
    26 kblockd          0.0
    27 md               0.0
    28 edac-poller      0.0
    29 watchdogd        0.0
    35 kswapd0          0.0
    36 ksmd             0.0
    37 khugepaged       0.0
    38 crypto           0.0
    46 kthrotld         0.0
    48 kmpath_rdacd     0.0
    49 kaluad           0.0
    51 kpsmoused        0.0
    53 ipv6_addrconf    0.0
    66 deferwq          0.0
    99 kauditd          0.0
   710 ata_sff          0.0
   720 scsi_eh_0        0.0
   725 scsi_tmf_0       0.0
   734 scsi_eh_1        0.0
   743 scsi_tmf_1       0.0
   760 mpt_poll_0       0.0
   763 mpt/0            0.0
   814 scsi_eh_2        0.0
   824 scsi_tmf_2       0.0
   951 ttm_swap         0.0
   955 irq/16-vmwgfx    0.0
  1778 nfit             0.0
  2413 scsi_eh_3        0.0
  2425 scsi_tmf_3       0.0
  2428 scsi_eh_4        0.0
  2432 scsi_tmf_4       0.0
  2436 scsi_eh_5        0.0
  2440 scsi_tmf_5       0.0
  2445 scsi_eh_6        0.0
  2453 scsi_tmf_6       0.0
  2457 scsi_eh_7        0.0
  2464 scsi_tmf_7       0.0
  2466 scsi_eh_8        0.0
  2467 scsi_tmf_8       0.0
  2468 scsi_eh_9        0.0
  2469 scsi_tmf_9       0.0
  2470 scsi_eh_10       0.0
  2471 scsi_tmf_10      0.0
  2472 scsi_eh_11       0.0
  2473 scsi_tmf_11      0.0
  2474 scsi_eh_12       0.0
  2476 scsi_tmf_12      0.0
  2493 scsi_eh_13       0.0
  2495 scsi_tmf_13      0.0
  2501 scsi_eh_14       0.0
  2503 scsi_tmf_14      0.0
  2513 scsi_eh_15       0.0
  2514 scsi_tmf_15      0.0
  2516 scsi_eh_16       0.0
  2521 scsi_tmf_16      0.0
  2525 scsi_eh_17       0.0
  2526 scsi_tmf_17      0.0
  2529 scsi_eh_18       0.0
  2534 scsi_tmf_18      0.0
  2542 scsi_eh_19       0.0
  2548 scsi_tmf_19      0.0
  2550 scsi_eh_20       0.0
  2554 scsi_tmf_20      0.0
  2555 scsi_eh_21       0.0
  2561 scsi_tmf_21      0.0
  2566 scsi_eh_22       0.0
  2576 scsi_tmf_22      0.0
  2577 scsi_eh_23       0.0
  2584 scsi_tmf_23      0.0
  2589 scsi_eh_24       0.0
  2600 scsi_tmf_24      0.0
  2604 scsi_eh_25       0.0
  2608 scsi_tmf_25      0.0
  2611 scsi_eh_26       0.0
  2619 scsi_tmf_26      0.0
  2627 scsi_eh_27       0.0
  2635 scsi_tmf_27      0.0
  2643 scsi_eh_28       0.0
  2646 scsi_tmf_28      0.0
  2650 scsi_eh_29       0.0
  2656 scsi_tmf_29      0.0
  2666 scsi_eh_30       0.0
  2673 scsi_tmf_30      0.0
  2678 scsi_eh_31       0.0
  2687 scsi_tmf_31      0.0
  2694 scsi_eh_32       0.0
  2705 scsi_tmf_32      0.0
  3405 kdmflush         0.0
  3406 bioset           0.0
  3420 kdmflush         0.0
  3423 bioset           0.0
  3442 bioset           0.0
  3448 xfsalloc         0.0
  3454 xfs_mru_cache    0.0
  3456 xfs-buf/dm-0     0.0
  3458 xfs-data/dm-0    0.0
  3460 xfs-conv/dm-0    0.0
  3461 xfs-cil/dm-0     0.0
  3462 xfs-reclaim/dm-  0.0
  3463 xfs-log/dm-0     0.0
  3464 xfs-eofblocks/d  0.0
  3465 xfsaild/dm-0     0.0
  3467 kworker/0:1H     0.0
  3538 kworker/1:1H     0.0
  3541 systemd-journal  0.0
  3565 lvmetad          0.0
  3578 systemd-udevd    0.0
  5652 xfs-buf/sda1     0.0
  5661 xfs-data/sda1    0.0
  5664 xfs-conv/sda1    0.0
  5671 xfs-cil/sda1     0.0
  5672 xfs-reclaim/sda  0.0
  5681 xfs-log/sda1     0.0
  5685 xfs-eofblocks/s  0.0
  5689 xfsaild/sda1     0.0
  6978 rpciod           0.0
  6979 xprtiod          0.0
  6985 auditd           0.0
  6987 audispd          0.0
  6989 sedispatch       0.0
  7011 smartd           0.0
  7013 dbus-daemon      0.0
  7016 rpcbind          0.0
  7019 accounts-daemon  0.0
  7020 udisksd          0.0
  7021 rngd             0.0
  7023 irqbalance       0.0
  7029 polkitd          0.0
  7030 systemd-logind   0.0
  7032 rtkit-daemon     0.0
  7035 lsmd             0.0
  7036 abrtd            0.0
  7037 abrt-watch-log   0.0
  7039 abrt-watch-log   0.0
  7040 alsactl          0.0
  7045 avahi-daemon     0.0
  7046 VGAuthService    0.0
  7047 vmtoolsd         0.1
  7049 ModemManager     0.0
  7077 mcelog           0.0
  7084 ksmtuned         0.0
  7089 avahi-daemon     0.0
  7110 gssproxy         0.0
  7112 firewalld        0.0
  7169 NetworkManager   0.0
  7507 cupsd            0.0
  7514 sshd             0.0
  7515 tuned            0.0
  7516 rsyslogd         0.0
  7520 libvirtd         0.0
  7528 rhsmcertd        0.0
  7534 atd              0.0
  7535 crond            0.0
  7536 gdm              0.0
  7539 rhnsd            0.0
  7679 X                0.4
  7735 master           0.0
  7757 qmgr             0.0
  8005 dnsmasq          0.0
  8006 dnsmasq          0.0
  8112 upowerd          0.0
  8176 packagekitd      0.0
  8177 boltd            0.0
  8201 wpa_supplicant   0.0
  8265 colord           0.0
  8379 gdm-session-wor  0.0
  8394 gnome-keyring-d  0.0
  8399 gnome-session-b  0.0
  8408 dbus-launch      0.0
  8409 dbus-daemon      0.0
  8482 gvfsd            0.0
  8487 gvfsd-fuse       0.0
  8589 ssh-agent        0.0
  8607 at-spi-bus-laun  0.0
  8612 dbus-daemon      0.0
  8615 at-spi2-registr  0.0
  8646 gnome-shell      0.5
  8656 pulseaudio       0.0
  8672 ibus-daemon      0.0
  8676 ibus-dconf       0.0
  8680 ibus-x11         0.0
  8683 ibus-portal      0.0
  8692 xdg-permission-  0.0
  8697 gnome-shell-cal  0.0
  8700 geoclue          0.0
  8714 evolution-sourc  0.0
  8718 mission-control  0.0
  8721 gvfs-udisks2-vo  0.0
  8726 goa-daemon       0.0
  8729 gvfs-mtp-volume  0.0
  8737 gvfs-goa-volume  0.0
  8785 goa-identity-se  0.0
  8793 gvfs-afc-volume  0.0
  8799 gvfs-gphoto2-vo  0.0
  8807 gsd-power        0.0
  8809 gsd-print-notif  0.0
  8814 gsd-rfkill       0.0
  8820 gsd-screensaver  0.0
  8822 gsd-sharing      0.0
  8828 gsd-sound        0.0
  8830 gsd-xsettings    0.0
  8833 gsd-wacom        0.0
  8835 gsd-smartcard    0.0
  8838 gsd-account      0.0
  8849 gsd-a11y-settin  0.0
  8850 gsd-clipboard    0.0
  8853 gsd-color        0.0
  8854 gsd-datetime     0.0
  8855 gsd-housekeepin  0.0
  8858 gsd-keyboard     0.0
  8861 gsd-media-keys   0.0
  8866 gsd-mouse        0.0
  8897 gsd-printer      0.0
  8909 nautilus-deskto  0.0
  8931 evolution-calen  0.0
  8932 gvfsd-trash      0.0
  8948 rhsm-icon        0.0
  8950 gsd-disk-utilit  0.0
  8962 seapplet         0.0
  8964 gnome-software   0.0
  8968 evolution-calen  0.0
  8975 gconfd-2         0.0
  8989 dconf-service    0.0
  8990 evolution-addre  0.0
  8992 ibus-engine-sim  0.0
  9000 tracker-extract  0.0
  9014 tracker-miner-a  0.0
  9018 tracker-miner-f  0.0
  9025 tracker-miner-u  0.0
  9038 evolution-addre  0.0
  9057 abrt-applet      0.0
  9072 vmtoolsd         0.1
  9078 tracker-store    0.0
  9238 fwupd            0.0
  9247 gnome-terminal-  0.2
  9254 gnome-pty-helpe  0.0
  9255 bash             0.0
  9521 kworker/u256:0   0.0
  9868 gvfsd-metadata   0.0
 10639 kworker/0:2      0.0
 10642 kworker/1:2      0.0
 10710 kworker/u256:1   0.0
 10753 kworker/0:0      0.0
 10804 kworker/1:1      0.0
 10827 pickup           0.0
 10844 kworker/0:1      0.0
 10896 bash             0.0
 10967 dd              99.9
 10990 kworker/1:0      0.0
 11045 sleep            0.0
 11046 ps               0.0

[cxg@localhost ~]$ ps ax -o pid,comm,%cpu|grep dd##在显示的这几项上过滤了含有dd的进程

     2 kthreadd         0.0
    10 lru-add-drain    0.0
    53 ipv6_addrconf    0.0
  8990 evolution-addre  0.0
  9038 evolution-addre  0.0
 10967 dd               100

[cxg@localhost ~]$ kill 10967##也可以采用kill+PID码关闭进程,但是有时候可能会被阻塞,这个时候我们就可以采用强行结束的方式,这个指令实际上是kill -15 10967

[cxg@localhost ~]$ kill -9 10967##15和9的意思我们最上面的图片都有解释
##当有时候遇到一些重复的进程的时候我们也可以采用killall指令但是kill指令和前面的区别是(killall+程序名)来达到关闭程序的目的
[cxg@localhost ~]$ killall biost##我们有时候在关闭程序的时候要注意查看他是不是主进程,要是不是主进程,我们得先删除他的主进程在关闭他的工作进程,不然只单独关闭工作进程,主进程还会依然给指令进行工作,导致删除的进程又会再一次出来。

##job管理
[cxg@localhost ~]$ vim
[cxg@localhost ~]$ vim &##写个vim在进程后台里面

[1] 12604

[cxg@localhost ~]$ sp a##可以看到已经有vim的进程了

bash: sp: command not found...
Similar commands are::
'ps'
'cp'

[1]+  Stopped                 vim

[1]+  Stopped                 vim

[cxg@localhost ~]$ ps ax##有vim的进程了,但是他已经停止运行了,因为他是交互类型的(交互类型不懂目前)

12548 ?        S      0:00 [kworker/1:2]
 12604 pts/1    T      0:00 vim
 12645 ?        S      0:00 sleep 60
 12660 pts/1    R+     0:00 ps ax

[cxg@localhost ~]$ jobs -l##查看当前终端有哪些工作进程

[1]+ 12604 Stopped (tty output)    vim

[cxg@localhost ~]$ jobs##和上面的区别就是前者有进程号,后者没有

[1]+  Stopped                 vim

[cxg@localhost ~]$ vim &##再写一个vim进程运行再后台

[2] 12898

[cxg@localhost ~]$ jobs##可以看到已经有两个vim了,其中+和-号控制优先级,+号优先

[1]-  Stopped                 vim
[2]+  Stopped                 vim

[cxg@localhost ~]$ fg##默认将+号的进程调到前台,相当于直接写出来个vim后面不带&效果一样

vim

ctrl+z##将优先级高的+号那个进程挂起


[cxg@localhost ~]$ dd if=/dev/zero of=/dev/null &##我们现在设置个动态的进程,例如前面那种的

[1] 13168

[cxg@localhost ~]$ jobs##running表示这个进程正在进行,和前面的vim有区别

[1]+  Running                 dd if=/dev/zero of=/dev/null &

[cxg@localhost ~]$ dd if=/dev/zero of=/dev/null &##再来一个进程

[2] 13200

[cxg@localhost ~]$ jobs##现在就有两个运行的进程了

[1]-   Running                 dd if=/dev/zero of=/dev/null &
[2]+  Running                 dd if=/dev/zero of=/dev/null &

[cxg@localhost ~]$ fg##将+这个进程调到前台

dd if=/dev/zero of=/dev/null

##这个时候已经没有可以输入的命令框了,因为系统在进行操作
^Z(ctrl+z)##这个命令是将运行的进程挂起

[2]+  Stopped                 dd if=/dev/zero of=/dev/null

[cxg@localhost ~]$ jobs## 可以看到ctrl+z已经使一个进程stoped挂起了

[1]-  Running                 dd if=/dev/zero of=/dev/null &
[2]+  Stopped                 dd if=/dev/zero of=/dev/null

[cxg@localhost ~]$ fg 1##因为直接输入fg命令是默认的调整优先级较高的+的到前台,但是我们加上数字1就是将上面命令1那个指令调到前台,虽然他的优先级是-号。

dd if=/dev/zero of=/dev/null

这个时候已经没有可以输入的命令框了,因为系统在进行操作
ctrl+z挂起
[cxg@localhost ~]$ jobs##可以看到两个进程都被挂起了

[2]+  Stopped                 dd if=/dev/zero of=/dev/null
[3]-  Stopped                 dd if=/dev/zero of=/dev/null

总结:fg是搬迁到前台工作,相当去去掉&
crtl+z主要是让他挂起

crtl+c 直接终止进程让进程在jobs上面查不到

你可能感兴趣的:(q'we,linux)