Linux查看系统中的每个进程

时间:2015-03-13 23:47:02   收藏:0   阅读:3403

Linux查看系统中的每个进程


youhaidong@youhaidong-ThinkPad-Edge-E545:~$ ps -A
  PID TTY          TIME CMD
    1 ?        00:00:01 init
    2 ?        00:00:00 kthreadd
    3 ?        00:00:00 ksoftirqd/0
    4 ?        00:00:00 kworker/0:0
    5 ?        00:00:00 kworker/0:0H
    6 ?        00:00:00 kworker/u8:0
    7 ?        00:00:02 rcu_sched
    8 ?        00:00:00 rcuos/0
    9 ?        00:00:00 rcuos/1
   10 ?        00:00:01 rcuos/2
   11 ?        00:00:00 rcuos/3
   12 ?        00:00:00 rcu_bh
   13 ?        00:00:00 rcuob/0
   14 ?        00:00:00 rcuob/1
   15 ?        00:00:00 rcuob/2
   16 ?        00:00:00 rcuob/3
   17 ?        00:00:01 migration/0
   18 ?        00:00:00 watchdog/0
   19 ?        00:00:00 watchdog/1
   20 ?        00:00:00 migration/1
   21 ?        00:00:00 ksoftirqd/1
   22 ?        00:00:02 kworker/1:0
   23 ?        00:00:00 kworker/1:0H
   24 ?        00:00:00 watchdog/2
   25 ?        00:00:01 migration/2
   26 ?        00:00:00 ksoftirqd/2
   27 ?        00:00:00 kworker/2:0
   28 ?        00:00:00 kworker/2:0H
   29 ?        00:00:00 watchdog/3
   30 ?        00:00:00 migration/3
   31 ?        00:00:00 ksoftirqd/3
   33 ?        00:00:00 kworker/3:0H
   34 ?        00:00:00 khelper
   35 ?        00:00:00 kdevtmpfs
   36 ?        00:00:00 netns
   37 ?        00:00:00 writeback
   38 ?        00:00:00 kintegrityd
   39 ?        00:00:00 bioset
   40 ?        00:00:00 kworker/u9:0
   41 ?        00:00:00 kblockd
   42 ?        00:00:00 ata_sff
   43 ?        00:00:00 khubd
   44 ?        00:00:00 md
   45 ?        00:00:00 devfreq_wq
   46 ?        00:00:01 kworker/0:1
   48 ?        00:00:00 khungtaskd
   49 ?        00:00:00 kswapd0
   50 ?        00:00:00 ksmd
   51 ?        00:00:00 khugepaged
   52 ?        00:00:00 fsnotify_mark
   53 ?        00:00:00 ecryptfs-kthrea
   54 ?        00:00:00 crypto
   66 ?        00:00:00 kthrotld
   69 ?        00:00:01 kworker/2:1
   90 ?        00:00:00 deferwq
   91 ?        00:00:00 charger_manager
   92 ?        00:00:03 kworker/3:2
  143 ?        00:00:00 kpsmoused
  144 ?        00:00:00 scsi_eh_0
  145 ?        00:00:00 scsi_eh_1
  146 ?        00:00:00 kworker/u8:3
  151 ?        00:00:00 kworker/3:3
  160 ?        00:00:00 jbd2/sda8-8
  161 ?        00:00:00 ext4-rsv-conver
  285 ?        00:00:00 upstart-udev-br
  291 ?        00:00:00 systemd-udevd
  343 ?        00:00:00 ktpacpid
  352 ?        00:00:00 cfg80211
  354 ?        00:00:00 hd-audio0
  361 ?        00:00:00 kworker/u9:1
  362 ?        00:00:00 ttm_swap
  364 ?        00:00:00 kmemstick
  365 ?        00:00:00 wl_event_handle
  501 ?        00:00:00 upstart-socket-
  517 ?        00:00:00 hci0
  518 ?        00:00:00 hci0
  521 ?        00:00:00 hd-audio1
  576 ?        00:00:00 jbd2/sda9-8
  577 ?        00:00:00 ext4-rsv-conver
  585 ?        00:00:00 jbd2/sda10-8
  586 ?        00:00:00 ext4-rsv-conver
  620 ?        00:00:00 smbd
  663 ?        00:00:00 dbus-daemon
  685 ?        00:00:00 ModemManager
  702 ?        00:00:00 upstart-file-br
  713 ?        00:00:00 rsyslogd
  718 ?        00:00:00 bluetoothd
  727 ?        00:00:00 krfcommd
  730 ?        00:00:00 avahi-daemon
  736 ?        00:00:00 avahi-daemon
  746 ?        00:00:00 systemd-logind
  748 ?        00:00:00 NetworkManager
  754 ?        00:00:00 polkitd
  763 ?        00:00:00 wpa_supplicant
  769 ?        00:00:00 smbd
  905 tty4     00:00:00 getty
  909 tty5     00:00:00 getty
  916 tty2     00:00:00 getty
  917 tty3     00:00:00 getty
  920 tty6     00:00:00 getty
  961 ?        00:00:00 anacron
  967 ?        00:00:00 cron
  987 ?        00:00:00 kerneloops
 1006 ?        00:00:00 cups-browsed
 1033 ?        00:00:00 irqbalance
 1043 ?        00:00:00 whoopsie
 1066 ?        00:00:00 acpid
 1069 ?        00:00:00 dhclient
 1077 ?        00:00:00 apache2
 1080 ?        00:00:00 apache2
 1081 ?        00:00:00 apache2
 1161 ?        00:00:00 dnsmasq
 1164 tty1     00:00:00 getty
 1299 ?        00:00:00 nmbd
 1302 ?        00:00:00 kworker/1:2
 1328 ?        00:00:00 lightdm
 1341 tty7     00:01:17 Xorg
 1344 ?        00:00:00 accounts-daemon
 1375 ?        00:00:00 kauditd
 1425 ?        00:00:00 lightdm
 1470 ?        00:00:00 upowerd
 1515 ?        00:00:00 rtkit-daemon
 1778 ?        00:00:00 cupsd
 1801 ?        00:00:00 gnome-keyring-d
 1806 ?        00:00:00 init
 1872 ?        00:00:00 dbus-daemon
 1881 ?        00:00:00 upstart-event-b
 1885 ?        00:00:00 window-stack-br
 1901 ?        00:00:00 upstart-file-br
 1903 ?        00:00:00 upstart-dbus-br
 1909 ?        00:00:00 upstart-dbus-br
 1911 ?        00:00:05 ibus-daemon
 1926 ?        00:00:00 unity-settings-
 1930 ?        00:00:00 hud-service
 1933 ?        00:00:00 at-spi-bus-laun
 1934 ?        00:00:00 gnome-session
 1938 ?        00:00:04 unity-panel-ser
 1940 ?        00:00:00 dbus-daemon
 1944 ?        00:00:00 gvfsd
 1949 ?        00:00:00 gvfsd-fuse
 1951 ?        00:00:00 ibus-dconf
 1952 ?        00:00:06 ibus-ui-gtk3
 1955 ?        00:00:00 ibus-x11
 1961 ?        00:00:00 at-spi2-registr
 1979 ?        00:00:00 bamfdaemon
 2001 ?        00:00:01 ibus-engine-pin
 2004 ?        00:00:01 indicator-keybo
 2007 ?        00:00:00 indicator-messa
 2008 ?        00:00:00 indicator-bluet
 2013 ?        00:00:00 indicator-power
 2015 ?        00:00:00 indicator-datet
 2022 ?        00:00:00 indicator-sound
 2025 ?        00:00:00 indicator-print
 2026 ?        00:00:00 indicator-sessi
 2039 ?        00:00:00 indicator-appli
 2050 ?        00:00:00 pulseaudio
 2059 ?        00:00:00 evolution-sourc
 2069 ?        00:00:00 colord
 2076 ?        00:00:00 syndaemon
 2083 ?        00:00:00 ibus-engine-sim
 2085 ?        00:00:00 dconf-service
 2113 ?        00:00:00 notify-osd
 2127 ?        00:00:00 evolution-calen
 2148 ?        00:00:31 compiz
 2209 ?        00:00:00 polkit-gnome-au
 2212 ?        00:00:00 nm-applet
 2214 ?        00:00:00 unity-fallback-
 2217 ?        00:00:00 nautilus
 2235 ?        00:00:00 gvfs-udisks2-vo
 2239 ?        00:00:00 udisksd
 2249 ?        00:00:00 gvfs-mtp-volume
 2253 ?        00:00:00 gvfs-gphoto2-vo
 2257 ?        00:00:00 gvfs-afc-volume
 2264 ?        00:00:00 gconfd-2
 2283 ?        00:00:00 gvfsd-trash
 2293 ?        00:00:00 gvfsd-burn
 2298 ?        00:00:00 gvfsd-metadata
 2318 ?        00:03:29 firefox
 2345 ?        00:00:00 unity-webapps-s
 2370 ?        00:00:00 telepathy-indic
 2377 ?        00:00:00 mission-control
 2412 ?        00:00:24 plugin-containe
 2419 ?        00:00:00 zeitgeist-datah
 2424 ?        00:00:00 zeitgeist-daemo
 2437 ?        00:00:00 zeitgeist-fts
 2454 ?        00:00:00 cat
 2495 ?        00:00:00 update-notifier
 2517 ?        00:00:08 update-manager
 2545 ?        00:00:00 deja-dup-monito
 2565 ?        00:00:03 gnome-terminal
 2575 ?        00:00:00 gnome-pty-helpe
 2576 pts/0    00:00:00 bash
 2635 ?        00:00:00 sh
 2636 ?        00:00:00 run-parts
 2644 ?        00:00:00 apt
 2680 ?        00:00:00 sleep
 2741 ?        00:00:00 kworker/u8:1
 2761 pts/0    00:00:00 ps

youhaidong@youhaidong-ThinkPad-Edge-E545:~$ ps -e
  PID TTY          TIME CMD
    1 ?        00:00:01 init
    2 ?        00:00:00 kthreadd
    3 ?        00:00:00 ksoftirqd/0
    4 ?        00:00:00 kworker/0:0
    5 ?        00:00:00 kworker/0:0H
    6 ?        00:00:00 kworker/u8:0
    7 ?        00:00:02 rcu_sched
    8 ?        00:00:00 rcuos/0
    9 ?        00:00:00 rcuos/1
   10 ?        00:00:01 rcuos/2
   11 ?        00:00:00 rcuos/3
   12 ?        00:00:00 rcu_bh
   13 ?        00:00:00 rcuob/0
   14 ?        00:00:00 rcuob/1
   15 ?        00:00:00 rcuob/2
   16 ?        00:00:00 rcuob/3
   17 ?        00:00:01 migration/0
   18 ?        00:00:00 watchdog/0
   19 ?        00:00:00 watchdog/1
   20 ?        00:00:00 migration/1
   21 ?        00:00:00 ksoftirqd/1
   22 ?        00:00:02 kworker/1:0
   23 ?        00:00:00 kworker/1:0H
   24 ?        00:00:00 watchdog/2
   25 ?        00:00:01 migration/2
   26 ?        00:00:00 ksoftirqd/2
   27 ?        00:00:00 kworker/2:0
   28 ?        00:00:00 kworker/2:0H
   29 ?        00:00:00 watchdog/3
   30 ?        00:00:00 migration/3
   31 ?        00:00:00 ksoftirqd/3
   33 ?        00:00:00 kworker/3:0H
   34 ?        00:00:00 khelper
   35 ?        00:00:00 kdevtmpfs
   36 ?        00:00:00 netns
   37 ?        00:00:00 writeback
   38 ?        00:00:00 kintegrityd
   39 ?        00:00:00 bioset
   40 ?        00:00:00 kworker/u9:0
   41 ?        00:00:00 kblockd
   42 ?        00:00:00 ata_sff
   43 ?        00:00:00 khubd
   44 ?        00:00:00 md
   45 ?        00:00:00 devfreq_wq
   46 ?        00:00:01 kworker/0:1
   48 ?        00:00:00 khungtaskd
   49 ?        00:00:00 kswapd0
   50 ?        00:00:00 ksmd
   51 ?        00:00:00 khugepaged
   52 ?        00:00:00 fsnotify_mark
   53 ?        00:00:00 ecryptfs-kthrea
   54 ?        00:00:00 crypto
   66 ?        00:00:00 kthrotld
   69 ?        00:00:01 kworker/2:1
   90 ?        00:00:00 deferwq
   91 ?        00:00:00 charger_manager
   92 ?        00:00:03 kworker/3:2
  143 ?        00:00:00 kpsmoused
  144 ?        00:00:00 scsi_eh_0
  145 ?        00:00:00 scsi_eh_1
  151 ?        00:00:00 kworker/3:3
  160 ?        00:00:00 jbd2/sda8-8
  161 ?        00:00:00 ext4-rsv-conver
  285 ?        00:00:00 upstart-udev-br
  291 ?        00:00:00 systemd-udevd
  343 ?        00:00:00 ktpacpid
  352 ?        00:00:00 cfg80211
  354 ?        00:00:00 hd-audio0
  361 ?        00:00:00 kworker/u9:1
  362 ?        00:00:00 ttm_swap
  364 ?        00:00:00 kmemstick
  365 ?        00:00:00 wl_event_handle
  501 ?        00:00:00 upstart-socket-
  517 ?        00:00:00 hci0
  518 ?        00:00:00 hci0
  521 ?        00:00:00 hd-audio1
  576 ?        00:00:00 jbd2/sda9-8
  577 ?        00:00:00 ext4-rsv-conver
  585 ?        00:00:00 jbd2/sda10-8
  586 ?        00:00:00 ext4-rsv-conver
  620 ?        00:00:00 smbd
  663 ?        00:00:00 dbus-daemon
  685 ?        00:00:00 ModemManager
  702 ?        00:00:00 upstart-file-br
  713 ?        00:00:00 rsyslogd
  718 ?        00:00:00 bluetoothd
  727 ?        00:00:00 krfcommd
  730 ?        00:00:00 avahi-daemon
  736 ?        00:00:00 avahi-daemon
  746 ?        00:00:00 systemd-logind
  748 ?        00:00:00 NetworkManager
  754 ?        00:00:00 polkitd
  763 ?        00:00:00 wpa_supplicant
  769 ?        00:00:00 smbd
  905 tty4     00:00:00 getty
  909 tty5     00:00:00 getty
  916 tty2     00:00:00 getty
  917 tty3     00:00:00 getty
  920 tty6     00:00:00 getty
  961 ?        00:00:00 anacron
  967 ?        00:00:00 cron
  987 ?        00:00:00 kerneloops
 1006 ?        00:00:00 cups-browsed
 1033 ?        00:00:00 irqbalance
 1043 ?        00:00:00 whoopsie
 1066 ?        00:00:00 acpid
 1069 ?        00:00:00 dhclient
 1077 ?        00:00:00 apache2
 1080 ?        00:00:00 apache2
 1081 ?        00:00:00 apache2
 1161 ?        00:00:00 dnsmasq
 1164 tty1     00:00:00 getty
 1299 ?        00:00:00 nmbd
 1302 ?        00:00:00 kworker/1:2
 1328 ?        00:00:00 lightdm
 1341 tty7     00:01:26 Xorg
 1344 ?        00:00:00 accounts-daemon
 1375 ?        00:00:00 kauditd
 1425 ?        00:00:00 lightdm
 1470 ?        00:00:00 upowerd
 1515 ?        00:00:00 rtkit-daemon
 1778 ?        00:00:00 cupsd
 1801 ?        00:00:00 gnome-keyring-d
 1806 ?        00:00:00 init
 1872 ?        00:00:00 dbus-daemon
 1881 ?        00:00:00 upstart-event-b
 1885 ?        00:00:00 window-stack-br
 1901 ?        00:00:00 upstart-file-br
 1903 ?        00:00:00 upstart-dbus-br
 1909 ?        00:00:00 upstart-dbus-br
 1911 ?        00:00:05 ibus-daemon
 1926 ?        00:00:00 unity-settings-
 1930 ?        00:00:00 hud-service
 1933 ?        00:00:00 at-spi-bus-laun
 1934 ?        00:00:00 gnome-session
 1938 ?        00:00:05 unity-panel-ser
 1940 ?        00:00:00 dbus-daemon
 1944 ?        00:00:00 gvfsd
 1949 ?        00:00:00 gvfsd-fuse
 1951 ?        00:00:00 ibus-dconf
 1952 ?        00:00:07 ibus-ui-gtk3
 1955 ?        00:00:00 ibus-x11
 1961 ?        00:00:00 at-spi2-registr
 1979 ?        00:00:00 bamfdaemon
 2001 ?        00:00:02 ibus-engine-pin
 2004 ?        00:00:01 indicator-keybo
 2007 ?        00:00:00 indicator-messa
 2008 ?        00:00:00 indicator-bluet
 2013 ?        00:00:00 indicator-power
 2015 ?        00:00:00 indicator-datet
 2022 ?        00:00:00 indicator-sound
 2025 ?        00:00:00 indicator-print
 2026 ?        00:00:00 indicator-sessi
 2039 ?        00:00:00 indicator-appli
 2050 ?        00:00:00 pulseaudio
 2059 ?        00:00:00 evolution-sourc
 2069 ?        00:00:00 colord
 2076 ?        00:00:00 syndaemon
 2083 ?        00:00:00 ibus-engine-sim
 2085 ?        00:00:00 dconf-service
 2113 ?        00:00:00 notify-osd
 2127 ?        00:00:00 evolution-calen
 2148 ?        00:00:35 compiz
 2209 ?        00:00:00 polkit-gnome-au
 2212 ?        00:00:00 nm-applet
 2214 ?        00:00:00 unity-fallback-
 2217 ?        00:00:00 nautilus
 2235 ?        00:00:00 gvfs-udisks2-vo
 2239 ?        00:00:00 udisksd
 2249 ?        00:00:00 gvfs-mtp-volume
 2253 ?        00:00:00 gvfs-gphoto2-vo
 2257 ?        00:00:00 gvfs-afc-volume
 2264 ?        00:00:00 gconfd-2
 2283 ?        00:00:00 gvfsd-trash
 2293 ?        00:00:00 gvfsd-burn
 2298 ?        00:00:00 gvfsd-metadata
 2318 ?        00:03:51 firefox
 2345 ?        00:00:00 unity-webapps-s
 2370 ?        00:00:00 telepathy-indic
 2377 ?        00:00:00 mission-control
 2412 ?        00:00:25 plugin-containe
 2419 ?        00:00:00 zeitgeist-datah
 2424 ?        00:00:00 zeitgeist-daemo
 2437 ?        00:00:00 zeitgeist-fts
 2454 ?        00:00:00 cat
 2495 ?        00:00:00 update-notifier
 2517 ?        00:00:08 update-manager
 2545 ?        00:00:00 deja-dup-monito
 2565 ?        00:00:04 gnome-terminal
 2575 ?        00:00:00 gnome-pty-helpe
 2576 pts/0    00:00:00 bash
 2635 ?        00:00:00 sh
 2636 ?        00:00:00 run-parts
 2644 ?        00:00:00 apt
 2680 ?        00:00:00 sleep
 2741 ?        00:00:00 kworker/u8:1
 2769 pts/0    00:00:00 ps


评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!