• 姓名 陈悦凯
  • 学号 201821121011
  • 班级 计算1811

1. 实验环境介绍

给出实验环境:

  • 操作系统:ubuntu-18.04.4-desktop-amd64
  • 平台:虚拟机

2. 常用命令使用

 

 

 

 

 

 

3. 剖析ps命令

EXAMPLES
       To see every process on the system using standard syntax:
          ps -e
          ps -ef
          ps -eF
          ps -ely

       To see every process on the system using BSD syntax:
          ps ax
          ps axu

       To print a process tree:
          ps -ejH
          ps axjf

       To get info about threads:
          ps -eLf
          ps axms

       To get security info:
          ps -eo euser,ruser,suser,fuser,f,comm,label
          ps axZ
          ps -eM

       To see every process running as root (real & effective ID) in user
       format:
          ps -U root -u root u

       To see every process with a user-defined format:
          ps -eo pid,tid,class,rtprio,ni,pri,psr,pcpu,stat,wchan:14,comm
          ps axo stat,euid,ruid,tty,tpgid,sess,pgrp,ppid,pid,pcpu,comm
          ps -Ao pid,tt,user,fname,tmout,f,wchan

       Print only the process IDs of syslogd:
          ps -C syslogd -o pid=

       Print only the name of PID 42:
          ps -q 42 -o comm=

 

运行 ps -ef

chenyuekai@chenyuekai-virtual-machine:~$ ps -ef
UID         PID   PPID  C STIME TTY          TIME CMD
root          1      0  0 11:11 ?        00:00:02 /sbin/init splash
root          2      0  0 11:11 ?        00:00:00 [kthreadd]
root          3      2  0 11:11 ?        00:00:00 [rcu_gp]
root          4      2  0 11:11 ?        00:00:00 [rcu_par_gp]
root          6      2  0 11:11 ?        00:00:00 [kworker/0:0H-kb]
root          9      2  0 11:11 ?        00:00:00 [mm_percpu_wq]
root         10      2  0 11:11 ?        00:00:00 [ksoftirqd/0]
root         11      2  0 11:11 ?        00:00:00 [rcu_sched]
root         12      2  0 11:11 ?        00:00:00 [migration/0]
root         13      2  0 11:11 ?        00:00:00 [idle_inject/0]
root         14      2  0 11:11 ?        00:00:00 [cpuhp/0]
root         15      2  0 11:11 ?        00:00:00 [kdevtmpfs]
root         16      2  0 11:11 ?        00:00:00 [netns]
root         17      2  0 11:11 ?        00:00:00 [rcu_tasks_kthre]
root         18      2  0 11:11 ?        00:00:00 [kauditd]
root         19      2  0 11:11 ?        00:00:00 [khungtaskd]
root         20      2  0 11:11 ?        00:00:00 [oom_reaper]
root         21      2  0 11:11 ?        00:00:00 [writeback]
root         22      2  0 11:11 ?        00:00:00 [kcompactd0]
root         23      2  0 11:11 ?        00:00:00 [ksmd]
root         24      2  0 11:11 ?        00:00:00 [khugepaged]
root        116      2  0 11:11 ?        00:00:00 [kintegrityd]
root        117      2  0 11:11 ?        00:00:00 [kblockd]
root        118      2  0 11:11 ?        00:00:00 [blkcg_punt_bio]
root        119      2  0 11:11 ?        00:00:00 [tpm_dev_wq]
root        120      2  0 11:11 ?        00:00:00 [ata_sff]
root        121      2  0 11:11 ?        00:00:00 [md]
root        122      2  0 11:11 ?        00:00:00 [edac-poller]
root        123      2  0 11:11 ?        00:00:00 [devfreq_wq]
root        124      2  0 11:11 ?        00:00:00 [watchdogd]
root        127      2  0 11:11 ?        00:00:00 [kswapd0]
root        128      2  0 11:11 ?        00:00:00 [kworker/u257:0]
root        129      2  0 11:11 ?        00:00:00 [ecryptfs-kthrea]
root        132      2  0 11:11 ?        00:00:00 [kthrotld]
root        133      2  0 11:11 ?        00:00:00 [irq/24-pciehp]
root        134      2  0 11:11 ?        00:00:00 [irq/25-pciehp]
root        135      2  0 11:11 ?        00:00:00 [irq/26-pciehp]
root        136      2  0 11:11 ?        00:00:00 [irq/27-pciehp]
root        137      2  0 11:11 ?        00:00:00 [irq/28-pciehp]
root        138      2  0 11:11 ?        00:00:00 [irq/29-pciehp]
root        139      2  0 11:11 ?        00:00:00 [irq/30-pciehp]
root        140      2  0 11:11 ?        00:00:00 [irq/31-pciehp]
root        141      2  0 11:11 ?        00:00:00 [irq/32-pciehp]
root        142      2  0 11:11 ?        00:00:00 [irq/33-pciehp]
root        143      2  0 11:11 ?        00:00:00 [irq/34-pciehp]
root        144      2  0 11:11 ?        00:00:00 [irq/35-pciehp]
root        145      2  0 11:11 ?        00:00:00 [irq/36-pciehp]
root        146      2  0 11:11 ?        00:00:00 [irq/37-pciehp]
root        147      2  0 11:11 ?        00:00:00 [irq/38-pciehp]
root        148      2  0 11:11 ?        00:00:00 [irq/39-pciehp]
root        149      2  0 11:11 ?        00:00:00 [irq/40-pciehp]
root        150      2  0 11:11 ?        00:00:00 [irq/41-pciehp]
root        151      2  0 11:11 ?        00:00:00 [irq/42-pciehp]
root        152      2  0 11:11 ?        00:00:00 [irq/43-pciehp]
root        153      2  0 11:11 ?        00:00:00 [irq/44-pciehp]
root        154      2  0 11:11 ?        00:00:00 [irq/45-pciehp]
root        155      2  0 11:11 ?        00:00:00 [irq/46-pciehp]
root        156      2  0 11:11 ?        00:00:00 [irq/47-pciehp]
root        157      2  0 11:11 ?        00:00:00 [irq/48-pciehp]
root        158      2  0 11:11 ?        00:00:00 [irq/49-pciehp]
root        159      2  0 11:11 ?        00:00:00 [irq/50-pciehp]
root        160      2  0 11:11 ?        00:00:00 [irq/51-pciehp]
root        161      2  0 11:11 ?        00:00:00 [irq/52-pciehp]
root        162      2  0 11:11 ?        00:00:00 [irq/53-pciehp]
root        163      2  0 11:11 ?        00:00:00 [irq/54-pciehp]
root        164      2  0 11:11 ?        00:00:00 [irq/55-pciehp]
root        165      2  0 11:11 ?        00:00:00 [acpi_thermal_pm]
root        166      2  0 11:11 ?        00:00:00 [scsi_eh_0]
root        167      2  0 11:11 ?        00:00:00 [scsi_tmf_0]
root        168      2  0 11:11 ?        00:00:00 [scsi_eh_1]
root        169      2  0 11:11 ?        00:00:00 [scsi_tmf_1]
root        171      2  0 11:11 ?        00:00:00 [ipv6_addrconf]
root        184      2  0 11:11 ?        00:00:00 [kstrp]
root        203      2  0 11:11 ?        00:00:00 [charger_manager]
root        252      2  0 11:11 ?        00:00:00 [mpt_poll_0]
root        253      2  0 11:11 ?        00:00:00 [mpt/0]
root        254      2  0 11:11 ?        00:00:00 [scsi_eh_2]
root        255      2  0 11:11 ?        00:00:00 [scsi_tmf_2]
root        256      2  0 11:11 ?        00:00:00 [scsi_eh_3]
root        257      2  0 11:11 ?        00:00:00 [scsi_tmf_3]
root        258      2  0 11:11 ?        00:00:00 [scsi_eh_4]
root        259      2  0 11:11 ?        00:00:00 [scsi_tmf_4]
root        260      2  0 11:11 ?        00:00:00 [scsi_eh_5]
root        261      2  0 11:11 ?        00:00:00 [scsi_tmf_5]
root        262      2  0 11:11 ?        00:00:00 [scsi_eh_6]
root        263      2  0 11:11 ?        00:00:00 [scsi_tmf_6]
root        264      2  0 11:11 ?        00:00:00 [scsi_eh_7]
root        265      2  0 11:11 ?        00:00:00 [scsi_tmf_7]
root        266      2  0 11:11 ?        00:00:00 [scsi_eh_8]
root        267      2  0 11:11 ?        00:00:00 [scsi_tmf_8]
root        268      2  0 11:11 ?        00:00:00 [scsi_eh_9]
root        269      2  0 11:11 ?        00:00:00 [scsi_tmf_9]
root        270      2  0 11:11 ?        00:00:00 [scsi_eh_10]
root        271      2  0 11:11 ?        00:00:00 [scsi_tmf_10]
root        272      2  0 11:11 ?        00:00:00 [scsi_eh_11]
root        273      2  0 11:11 ?        00:00:00 [scsi_tmf_11]
root        274      2  0 11:11 ?        00:00:00 [scsi_eh_12]
root        275      2  0 11:11 ?        00:00:00 [scsi_tmf_12]
root        276      2  0 11:11 ?        00:00:00 [scsi_eh_13]
root        277      2  0 11:11 ?        00:00:00 [scsi_tmf_13]
root        278      2  0 11:11 ?        00:00:00 [scsi_eh_14]
root        279      2  0 11:11 ?        00:00:00 [scsi_tmf_14]
root        280      2  0 11:11 ?        00:00:00 [scsi_eh_15]
root        281      2  0 11:11 ?        00:00:00 [scsi_tmf_15]
root        282      2  0 11:11 ?        00:00:00 [scsi_eh_16]
root        283      2  0 11:11 ?        00:00:00 [scsi_tmf_16]
root        284      2  0 11:11 ?        00:00:00 [scsi_eh_17]
root        285      2  0 11:11 ?        00:00:00 [scsi_tmf_17]
root        286      2  0 11:11 ?        00:00:00 [scsi_eh_18]
root        287      2  0 11:11 ?        00:00:00 [scsi_tmf_18]
root        288      2  0 11:11 ?        00:00:00 [scsi_eh_19]
root        289      2  0 11:11 ?        00:00:00 [scsi_tmf_19]
root        290      2  0 11:11 ?        00:00:00 [scsi_eh_20]
root        291      2  0 11:11 ?        00:00:00 [scsi_tmf_20]
root        292      2  0 11:11 ?        00:00:00 [scsi_eh_21]
root        293      2  0 11:11 ?        00:00:00 [scsi_tmf_21]
root        294      2  0 11:11 ?        00:00:00 [scsi_eh_22]
root        295      2  0 11:11 ?        00:00:00 [scsi_tmf_22]
root        296      2  0 11:11 ?        00:00:00 [scsi_eh_23]
root        297      2  0 11:11 ?        00:00:00 [scsi_tmf_23]
root        298      2  0 11:11 ?        00:00:00 [scsi_eh_24]
root        299      2  0 11:11 ?        00:00:00 [scsi_tmf_24]
root        300      2  0 11:11 ?        00:00:00 [scsi_eh_25]
root        301      2  0 11:11 ?        00:00:00 [scsi_tmf_25]
root        302      2  0 11:11 ?        00:00:00 [scsi_eh_26]
root        303      2  0 11:11 ?        00:00:00 [scsi_tmf_26]
root        304      2  0 11:11 ?        00:00:00 [scsi_eh_27]
root        305      2  0 11:11 ?        00:00:00 [scsi_tmf_27]
root        306      2  0 11:11 ?        00:00:00 [scsi_eh_28]
root        307      2  0 11:11 ?        00:00:00 [scsi_tmf_28]
root        308      2  0 11:11 ?        00:00:00 [scsi_eh_29]
root        309      2  0 11:11 ?        00:00:00 [scsi_tmf_29]
root        310      2  0 11:11 ?        00:00:00 [scsi_eh_30]
root        311      2  0 11:11 ?        00:00:00 [scsi_tmf_30]
root        312      2  0 11:11 ?        00:00:00 [scsi_eh_31]
root        313      2  0 11:11 ?        00:00:00 [scsi_tmf_31]
root        328      2  0 11:11 ?        00:00:00 [scsi_eh_32]
root        333      2  0 11:11 ?        00:00:00 [scsi_tmf_32]
root        339      2  0 11:11 ?        00:00:00 [kworker/u256:27]
root        345      2  0 11:11 ?        00:00:00 [kworker/0:1H-kb]
root        368      2  0 11:11 ?        00:00:00 [jbd2/sda1-8]
root        369      2  0 11:11 ?        00:00:00 [ext4-rsv-conver]
root        410      1  0 11:11 ?        00:00:00 /lib/systemd/systemd-journald
root        426      1  0 11:11 ?        00:00:00 /lib/systemd/systemd-udevd
root        430      2  0 11:11 ?        00:00:00 [kworker/0:4-eve]
root        433      2  0 11:11 ?        00:00:00 [loop0]
root        437      2  0 11:11 ?        00:00:00 [loop1]
root        446      2  0 11:11 ?        00:00:00 [loop2]
root        448      2  0 11:11 ?        00:00:00 [loop3]
root        452      2  0 11:11 ?        00:00:00 [loop4]
root        454      2  0 11:11 ?        00:00:00 [loop5]
root        461      2  0 11:11 ?        00:00:00 [loop6]
root        462      2  0 11:11 ?        00:00:00 [loop7]
systemd+    513      1  0 11:11 ?        00:00:00 /lib/systemd/systemd-timesyncd
systemd+    514      1  0 11:11 ?        00:00:00 /lib/systemd/systemd-resolved
root        573      1  0 11:11 ?        00:00:00 /lib/systemd/systemd-logind
root        583      1  0 11:11 ?        00:00:00 /usr/lib/udisks2/udisksd
root        591      1  0 11:11 ?        00:00:00 /usr/sbin/ModemManager --filter-policy=strict
root        607      1  0 11:11 ?        00:00:00 /usr/lib/accountsservice/accounts-daemon
root        628      1  0 11:11 ?        00:00:00 /usr/sbin/cron -f
message+    632      1  0 11:11 ?        00:00:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
root        645      1  0 11:11 ?        00:00:00 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant
root        649      1  0 11:11 ?        00:00:01 /usr/lib/snapd/snapd
root        654      1  0 11:11 ?        00:00:00 /usr/sbin/acpid
root        655      1  0 11:11 ?        00:00:00 /usr/sbin/NetworkManager --no-daemon
avahi       657      1  0 11:11 ?        00:00:00 avahi-daemon: running [chenyuekai-virtual-machine.local]
avahi       659    657  0 11:11 ?        00:00:00 avahi-daemon: chroot helper
syslog      660      1  0 11:11 ?        00:00:00 /usr/sbin/rsyslogd -n
root        661      1  0 11:11 ?        00:00:00 /usr/sbin/cupsd -l
root        662      1  0 11:11 ?        00:00:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers
root        680      1  0 11:11 ?        00:00:00 /usr/sbin/cups-browsed
root        681      1  0 11:11 ?        00:00:00 /usr/lib/policykit-1/polkitd --no-debug
root        729      1  0 11:11 ?        00:00:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
root        734      2  0 11:11 ?        00:00:00 [kworker/0:6-eve]
root        742      1  0 11:11 ?        00:00:00 /usr/sbin/gdm3
root        759    655  0 11:11 ?        00:00:00 /sbin/dhclient -d -q -sf /usr/lib/NetworkManager/nm-dhcp-helper -pf /run/dhclient-ens32.pid -lf /var/lib/NetworkManager/dhclient-0a
root        934      1  0 11:11 ?        00:00:00 /usr/lib/upower/upowerd
root        946    742  0 11:11 ?        00:00:00 gdm-session-worker [pam/gdm-launch-environment]
gdm         959      1  0 11:11 ?        00:00:00 /lib/systemd/systemd --user
gdm         960    959  0 11:11 ?        00:00:00 (sd-pam)
gdm         992    946  0 11:11 tty1     00:00:00 /usr/lib/gdm3/gdm-x-session gnome-session --autostart /usr/share/gdm/greeter/autostart
root        995    992  0 11:11 tty1     00:00:00 /usr/lib/xorg/Xorg vt1 -displayfd 3 -auth /run/user/121/gdm/Xauthority -background none -noreset -keeptty -verbose 3
root       1038      2  0 11:11 ?        00:00:00 [irq/16-vmwgfx]
root       1039      2  0 11:11 ?        00:00:00 [ttm_swap]
root       1043      1  0 11:11 ?        00:00:00 /usr/sbin/vmware-vmblock-fuse -o subtype=vmware-vmblock,default_permissions,allow_other /var/run/vmblock-fuse
root       1079      1  0 11:11 ?        00:00:00 /usr/sbin/vmtoolsd
root       1124      1  0 11:11 ?        00:00:00 /usr/lib/vmware-vgauth/VGAuthService -s
whoopsie   1133      1  0 11:11 ?        00:00:00 /usr/bin/whoopsie -f
kernoops   1135      1  0 11:11 ?        00:00:00 /usr/sbin/kerneloops --test
kernoops   1138      1  0 11:11 ?        00:00:00 /usr/sbin/kerneloops
root       1199      2  0 11:11 ?        00:00:00 [cryptd]
gdm        1251    959  0 11:11 ?        00:00:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
gdm        1258    992  0 11:11 tty1     00:00:00 /usr/lib/gnome-session/gnome-session-binary --autostart /usr/share/gdm/greeter/autostart
gdm        1309    959  0 11:11 ?        00:00:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
gdm        1312    959  0 11:11 ?        00:00:00 /usr/lib/gvfs/gvfsd
gdm        1317    959  0 11:11 ?        00:00:00 /usr/lib/gvfs/gvfsd-fuse /run/user/121/gvfs -f -o big_writes
gdm        1321   1309  0 11:11 ?        00:00:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
gdm        1329    959  0 11:11 ?        00:00:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
gdm        1340   1258  0 11:11 tty1     00:00:02 /usr/bin/gnome-shell
gdm        1346    959  0 11:11 ?        00:00:00 /usr/bin/pulseaudio --daemonize=no
rtkit      1348      1  0 11:11 ?        00:00:00 /usr/lib/rtkit/rtkit-daemon
gdm        1359   1340  0 11:11 tty1     00:00:00 ibus-daemon --xim --panel disable
gdm        1362   1359  0 11:11 tty1     00:00:00 /usr/lib/ibus/ibus-dconf
gdm        1365      1  0 11:11 tty1     00:00:00 /usr/lib/ibus/ibus-x11 --kill-daemon
gdm        1367    959  0 11:11 ?        00:00:00 /usr/lib/ibus/ibus-portal
gdm        1377    959  0 11:11 ?        00:00:00 /usr/libexec/xdg-permission-store
root       1388      1  0 11:11 ?        00:00:00 /usr/lib/x86_64-linux-gnu/boltd
root       1392      1  0 11:11 ?        00:00:01 /usr/lib/packagekit/packagekitd
gdm        1395   1258  0 11:11 tty1     00:00:00 /usr/lib/gnome-settings-daemon/gsd-xsettings
gdm        1397   1258  0 11:11 tty1     00:00:00 /usr/lib/gnome-settings-daemon/gsd-a11y-settings
gdm        1400   1258  0 11:11 tty1     00:00:00 /usr/lib/gnome-settings-daemon/gsd-clipboard
gdm        1402   1258  0 11:11 tty1     00:00:00 /usr/lib/gnome-settings-daemon/gsd-color
gdm        1404   1258  0 11:11 tty1     00:00:00 /usr/lib/gnome-settings-daemon/gsd-datetime
gdm        1405   1258  0 11:11 tty1     00:00:00 /usr/lib/gnome-settings-daemon/gsd-housekeeping
gdm        1406   1258  0 11:11 tty1     00:00:00 /usr/lib/gnome-settings-daemon/gsd-keyboard
gdm        1409   1258  0 11:11 tty1     00:00:00 /usr/lib/gnome-settings-daemon/gsd-media-keys
gdm        1410   1258  0 11:11 tty1     00:00:00 /usr/lib/gnome-settings-daemon/gsd-mouse
gdm        1412   1258  0 11:11 tty1     00:00:00 /usr/lib/gnome-settings-daemon/gsd-power
gdm        1416   1258  0 11:11 tty1     00:00:00 /usr/lib/gnome-settings-daemon/gsd-print-notifications
gdm        1419   1258  0 11:11 tty1     00:00:00 /usr/lib/gnome-settings-daemon/gsd-rfkill
gdm        1421   1258  0 11:11 tty1     00:00:00 /usr/lib/gnome-settings-daemon/gsd-screensaver-proxy
gdm        1423   1258  0 11:11 tty1     00:00:00 /usr/lib/gnome-settings-daemon/gsd-sharing
gdm        1430   1258  0 11:11 tty1     00:00:00 /usr/lib/gnome-settings-daemon/gsd-smartcard
gdm        1433   1258  0 11:11 tty1     00:00:00 /usr/lib/gnome-settings-daemon/gsd-sound
gdm        1434   1258  0 11:11 tty1     00:00:00 /usr/lib/gnome-settings-daemon/gsd-wacom
colord     1466      1  0 11:11 ?        00:00:00 /usr/lib/colord/colord
gdm        1484   1359  0 11:11 tty1     00:00:00 /usr/lib/ibus/ibus-engine-simple
root       1491    742  0 11:11 ?        00:00:00 gdm-session-worker [pam/gdm-password]
chenyue+   1494      1  0 11:11 ?        00:00:00 /lib/systemd/systemd --user
chenyue+   1495   1494  0 11:11 ?        00:00:00 (sd-pam)
chenyue+   1508      1  0 11:11 ?        00:00:00 /usr/bin/gnome-keyring-daemon --daemonize --login
chenyue+   1512   1491  0 11:12 tty2     00:00:00 /usr/lib/gdm3/gdm-x-session --run-script env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
chenyue+   1514   1512  1 11:12 tty2     00:00:14 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
chenyue+   1519   1494  0 11:12 ?        00:00:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
chenyue+   1523   1512  0 11:12 tty2     00:00:00 /usr/lib/gnome-session/gnome-session-binary --session=ubuntu
chenyue+   1618   1523  0 11:12 ?        00:00:00 /usr/bin/ssh-agent /usr/bin/im-launch env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
chenyue+   1621   1494  0 11:12 ?        00:00:00 /usr/lib/gvfs/gvfsd
chenyue+   1626   1494  0 11:12 ?        00:00:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
chenyue+   1635   1494  0 11:12 ?        00:00:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
chenyue+   1640   1635  0 11:12 ?        00:00:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
chenyue+   1643   1494  0 11:12 ?        00:00:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
chenyue+   1658   1523  2 11:12 tty2     00:00:21 /usr/bin/gnome-shell
chenyue+   1669      1  0 11:12 ?        00:00:00 /usr/bin/pulseaudio --start --log-target=syslog
chenyue+   1679   1658  0 11:12 tty2     00:00:00 ibus-daemon --xim --panel disable
chenyue+   1683   1679  0 11:12 tty2     00:00:00 /usr/lib/ibus/ibus-dconf
chenyue+   1685      1  0 11:12 tty2     00:00:00 /usr/lib/ibus/ibus-x11 --kill-daemon
chenyue+   1687   1494  0 11:12 ?        00:00:00 /usr/lib/ibus/ibus-portal
chenyue+   1695   1494  0 11:12 ?        00:00:00 /usr/libexec/xdg-permission-store
chenyue+   1702   1494  0 11:12 ?        00:00:00 /usr/lib/gnome-shell/gnome-shell-calendar-server
chenyue+   1706   1494  0 11:12 ?        00:00:00 /usr/lib/evolution/evolution-source-registry
chenyue+   1713   1494  0 11:12 ?        00:00:00 /usr/lib/gnome-online-accounts/goa-daemon
chenyue+   1724   1494  0 11:12 ?        00:00:00 /usr/lib/gnome-online-accounts/goa-identity-service
chenyue+   1733   1494  0 11:12 ?        00:00:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
chenyue+   1737   1494  0 11:12 ?        00:00:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
chenyue+   1741   1494  0 11:12 ?        00:00:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
chenyue+   1745   1494  0 11:12 ?        00:00:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
chenyue+   1749   1494  0 11:12 ?        00:00:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
chenyue+   1755   1523  0 11:12 tty2     00:00:00 /usr/lib/gnome-settings-daemon/gsd-power
chenyue+   1757   1523  0 11:12 tty2     00:00:00 /usr/lib/gnome-settings-daemon/gsd-print-notifications
chenyue+   1758   1523  0 11:12 tty2     00:00:00 /usr/lib/gnome-settings-daemon/gsd-rfkill
chenyue+   1759   1523  0 11:12 tty2     00:00:00 /usr/lib/gnome-settings-daemon/gsd-screensaver-proxy
chenyue+   1761   1523  0 11:12 tty2     00:00:00 /usr/lib/gnome-settings-daemon/gsd-sharing
chenyue+   1763   1523  0 11:12 tty2     00:00:00 /usr/lib/gnome-settings-daemon/gsd-smartcard
chenyue+   1767   1523  0 11:12 tty2     00:00:00 /usr/lib/gnome-settings-daemon/gsd-xsettings
chenyue+   1769   1523  0 11:12 tty2     00:00:00 /usr/lib/gnome-settings-daemon/gsd-sound
chenyue+   1772   1523  0 11:12 tty2     00:00:00 /usr/lib/gnome-settings-daemon/gsd-wacom
chenyue+   1782   1523  0 11:12 tty2     00:00:00 /usr/lib/gnome-settings-daemon/gsd-clipboard
chenyue+   1784   1523  0 11:12 tty2     00:00:00 /usr/lib/gnome-settings-daemon/gsd-a11y-settings
chenyue+   1787   1523  0 11:12 tty2     00:00:00 /usr/lib/gnome-settings-daemon/gsd-housekeeping
chenyue+   1790   1523  0 11:12 tty2     00:00:00 /usr/lib/gnome-settings-daemon/gsd-color
chenyue+   1793   1523  0 11:12 tty2     00:00:00 /usr/lib/gnome-settings-daemon/gsd-datetime
chenyue+   1796   1523  0 11:12 tty2     00:00:00 /usr/lib/gnome-settings-daemon/gsd-mouse
chenyue+   1799   1523  0 11:12 tty2     00:00:00 /usr/lib/gnome-settings-daemon/gsd-keyboard
chenyue+   1801   1523  0 11:12 tty2     00:00:00 /usr/lib/gnome-settings-daemon/gsd-media-keys
chenyue+   1812      1  0 11:12 tty2     00:00:00 /usr/lib/gnome-settings-daemon/gsd-printer
chenyue+   1855      1  0 11:12 tty2     00:00:01 /usr/lib/vmware-tools/sbin64/vmtoolsd -n vmusr --blockFd 3
chenyue+   1856   1523  0 11:12 tty2     00:00:00 /usr/lib/gnome-disk-utility/gsd-disk-utility-notify
chenyue+   1857   1523  0 11:12 tty2     00:00:03 nautilus-desktop
chenyue+   1877   1621  0 11:12 ?        00:00:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.7 /org/gtk/gvfs/exec_spaw/0
chenyue+   1907   1494  0 11:12 ?        00:00:00 /usr/lib/evolution/evolution-calendar-factory
chenyue+   1914   1907  0 11:12 ?        00:00:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend
chenyue+   1916   1494  0 11:12 ?        00:00:00 /usr/lib/dconf/dconf-service
chenyue+   1934   1494  0 11:12 ?        00:00:00 /usr/lib/evolution/evolution-addressbook-factory
chenyue+   1943   1934  0 11:12 ?        00:00:00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Back
chenyue+   1959   1679  0 11:12 tty2     00:00:00 /usr/lib/ibus/ibus-engine-simple
chenyue+   1986   1494  0 11:12 ?        00:00:00 /usr/lib/gvfs/gvfsd-metadata
chenyue+   2003   1679  0 11:12 tty2     00:00:00 /usr/lib/ibus/ibus-engine-libpinyin --ibus
chenyue+   2061   1523  0 11:13 tty2     00:00:00 update-notifier
chenyue+   2063   1523  0 11:13 tty2     00:00:02 /usr/bin/gnome-software --gapplication-service
root       2083      1  0 11:13 ?        00:00:00 /usr/lib/fwupd/fwupd
chenyue+   2158   1523  0 11:14 tty2     00:00:00 /usr/lib/deja-dup/deja-dup-monitor
root       2182      2  0 11:16 ?        00:00:00 [kworker/u256:0-]
chenyue+   2191   1494  0 11:16 ?        00:00:04 /usr/lib/gnome-terminal/gnome-terminal-server
chenyue+   2202   2191  0 11:16 pts/0    00:00:00 bash
chenyue+   2301   2202  0 11:27 pts/0    00:00:00 ps -ef

ps:查看进程命令

-e:显示所有进程。

-f:全格式。

-h:不显示标题。

-l:长格式。

-w:宽输出。

-a:显示终端上的所有进程,包括其他用户的进程。

-r:只显示正在运行的进程。

-x:显示没有控制终端的进程。

-help:显示帮助信息。

-version:显示该命令的版本信息。

-ef 返回字段以及意义:

UID         PID   PPID  C STIME TTY          TIME CMD

UID 程序被该用户身份所拥有

PID 这个程序的 ID

PPID 则是其上级父程序的ID

C CPU使用的资源百分比

STIME 系统启动时间

TTY 登入者的终端机位置

TIME 使用掉的CPU时间。

CMD 所下达的指令为何

4. 通过该实验产生新的疑问及解答

通过该实验如果有产生新的疑问,可以写出来,并尝试自己解决问题。

 

用户身份证明

posted on 2020-03-07 11:48  chenyuekai  阅读(555)  评论(0编辑  收藏  举报