多账户 真正意义上的多任务、多用户操作系统
[well@team-test-server ~]$ ps -aux Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 19348 1384 ? Ss May05 0:00 /sbin/init root 2 0.0 0.0 0 0 ? S May05 0:00 [kthreadd] root 3 0.0 0.0 0 0 ? S May05 0:00 [migration/0] root 4 0.0 0.0 0 0 ? S May05 0:00 [ksoftirqd/0] root 5 0.0 0.0 0 0 ? S May05 0:00 [stopper/0] root 6 0.0 0.0 0 0 ? S May05 0:00 [watchdog/0] root 7 0.0 0.0 0 0 ? S May05 0:00 [migration/1] root 8 0.0 0.0 0 0 ? S May05 0:00 [stopper/1] root 9 0.0 0.0 0 0 ? S May05 0:00 [ksoftirqd/1] root 10 0.0 0.0 0 0 ? S May05 0:00 [watchdog/1] root 11 0.0 0.0 0 0 ? S May05 0:00 [migration/2] root 12 0.0 0.0 0 0 ? S May05 0:00 [stopper/2] root 13 0.0 0.0 0 0 ? S May05 0:00 [ksoftirqd/2] root 14 0.0 0.0 0 0 ? S May05 0:00 [watchdog/2] root 15 0.0 0.0 0 0 ? S May05 0:00 [migration/3] root 16 0.0 0.0 0 0 ? S May05 0:00 [stopper/3] root 17 0.0 0.0 0 0 ? S May05 0:00 [ksoftirqd/3] root 18 0.0 0.0 0 0 ? S May05 0:00 [watchdog/3] root 19 0.0 0.0 0 0 ? S May05 0:01 [events/0] root 20 0.0 0.0 0 0 ? S May05 0:22 [events/1] root 21 0.0 0.0 0 0 ? S May05 0:01 [events/2] root 22 0.0 0.0 0 0 ? S May05 0:02 [events/3] root 23 0.0 0.0 0 0 ? S May05 0:00 [events/0] root 24 0.0 0.0 0 0 ? S May05 0:00 [events/1] root 25 0.0 0.0 0 0 ? S May05 0:00 [events/2] root 26 0.0 0.0 0 0 ? S May05 0:00 [events/3] root 27 0.0 0.0 0 0 ? S May05 0:00 [events_long/0] root 28 0.0 0.0 0 0 ? S May05 0:00 [events_long/1] root 29 0.0 0.0 0 0 ? S May05 0:00 [events_long/2] root 30 0.0 0.0 0 0 ? S May05 0:00 [events_long/3] root 31 0.0 0.0 0 0 ? S May05 0:00 [events_power_ef] root 32 0.0 0.0 0 0 ? S May05 0:00 [events_power_ef] root 33 0.0 0.0 0 0 ? S May05 0:00 [events_power_ef] root 34 0.0 0.0 0 0 ? S May05 0:00 [events_power_ef] root 35 0.0 0.0 0 0 ? S May05 0:00 [cgroup] root 36 0.0 0.0 0 0 ? S May05 0:00 [khelper] root 37 0.0 0.0 0 0 ? S May05 0:00 [netns] root 38 0.0 0.0 0 0 ? S May05 0:00 [async/mgr] root 39 0.0 0.0 0 0 ? S May05 0:00 [pm] root 40 0.0 0.0 0 0 ? S May05 0:00 [sync_supers] root 41 0.0 0.0 0 0 ? S May05 0:00 [bdi-default] root 42 0.0 0.0 0 0 ? S May05 0:00 [kintegrityd/0] root 43 0.0 0.0 0 0 ? S May05 0:00 [kintegrityd/1] root 44 0.0 0.0 0 0 ? S May05 0:00 [kintegrityd/2] root 45 0.0 0.0 0 0 ? S May05 0:00 [kintegrityd/3] root 46 0.0 0.0 0 0 ? S May05 0:00 [kblockd/0] root 47 0.0 0.0 0 0 ? S May05 0:00 [kblockd/1] root 48 0.0 0.0 0 0 ? S May05 0:00 [kblockd/2] root 49 0.0 0.0 0 0 ? S May05 0:00 [kblockd/3] root 50 0.0 0.0 0 0 ? S May05 0:00 [kacpid] root 51 0.0 0.0 0 0 ? S May05 0:00 [kacpi_notify] root 52 0.0 0.0 0 0 ? S May05 0:00 [kacpi_hotplug] root 53 0.0 0.0 0 0 ? S May05 0:00 [ata_aux] root 54 0.0 0.0 0 0 ? S May05 0:00 [ata_sff/0] root 55 0.0 0.0 0 0 ? S May05 0:00 [ata_sff/1] root 56 0.0 0.0 0 0 ? S May05 0:00 [ata_sff/2] root 57 0.0 0.0 0 0 ? S May05 0:00 [ata_sff/3] root 58 0.0 0.0 0 0 ? S May05 0:00 [ksuspend_usbd] root 59 0.0 0.0 0 0 ? S May05 0:00 [khubd] root 60 0.0 0.0 0 0 ? S May05 0:00 [kseriod] root 61 0.0 0.0 0 0 ? S May05 0:00 [md/0] root 62 0.0 0.0 0 0 ? S May05 0:00 [md/1] root 63 0.0 0.0 0 0 ? S May05 0:00 [md/2] root 64 0.0 0.0 0 0 ? S May05 0:00 [md/3] root 65 0.0 0.0 0 0 ? S May05 0:00 [md_misc/0] root 66 0.0 0.0 0 0 ? S May05 0:00 [md_misc/1] root 67 0.0 0.0 0 0 ? S May05 0:00 [md_misc/2] root 68 0.0 0.0 0 0 ? S May05 0:00 [md_misc/3] root 69 0.0 0.0 0 0 ? S May05 0:00 [linkwatch] root 72 0.0 0.0 0 0 ? S May05 0:00 [khungtaskd] root 73 0.0 0.0 0 0 ? S May05 0:00 [kswapd0] root 74 0.0 0.0 0 0 ? SN May05 0:00 [ksmd] root 75 0.0 0.0 0 0 ? SN May05 0:00 [khugepaged] root 76 0.0 0.0 0 0 ? S May05 0:00 [aio/0] root 77 0.0 0.0 0 0 ? S May05 0:00 [aio/1] root 78 0.0 0.0 0 0 ? S May05 0:00 [aio/2] root 79 0.0 0.0 0 0 ? S May05 0:00 [aio/3] root 80 0.0 0.0 0 0 ? S May05 0:00 [crypto/0] root 81 0.0 0.0 0 0 ? S May05 0:00 [crypto/1] root 82 0.0 0.0 0 0 ? S May05 0:00 [crypto/2] root 83 0.0 0.0 0 0 ? S May05 0:00 [crypto/3] root 90 0.0 0.0 0 0 ? S May05 0:00 [kthrotld/0] root 91 0.0 0.0 0 0 ? S May05 0:00 [kthrotld/1] root 92 0.0 0.0 0 0 ? S May05 0:00 [kthrotld/2] root 93 0.0 0.0 0 0 ? S May05 0:00 [kthrotld/3] root 94 0.0 0.0 0 0 ? S May05 0:00 [pciehpd] root 96 0.0 0.0 0 0 ? S May05 0:00 [kpsmoused] root 97 0.0 0.0 0 0 ? S May05 0:00 [usbhid_resumer] root 98 0.0 0.0 0 0 ? S May05 0:00 [deferwq] root 131 0.0 0.0 0 0 ? S May05 0:00 [kdmremove] root 132 0.0 0.0 0 0 ? S May05 0:00 [kstriped] root 169 0.0 0.0 0 0 ? S May05 0:00 [ttm_swap] root 302 0.0 0.0 0 0 ? S May05 0:00 [scsi_eh_0] root 303 0.0 0.0 0 0 ? S May05 0:00 [scsi_eh_1] root 375 0.0 0.0 0 0 ? S May05 0:01 [mpt_poll_0] root 376 0.0 0.0 0 0 ? S May05 0:00 [mpt/0] root 377 0.0 0.0 0 0 ? S May05 0:00 [scsi_eh_2] root 435 0.0 0.0 0 0 ? S May05 0:00 [kdmflush] root 437 0.0 0.0 0 0 ? S May05 0:00 [kdmflush] root 455 0.0 0.0 0 0 ? S May05 0:00 [jbd2/dm-0-8] root 456 0.0 0.0 0 0 ? S May05 0:00 [ext4-dio-unwrit] root 561 0.0 0.0 10884 444 ? S<s May05 0:00 /sbin/udevd -d root 768 0.0 0.0 0 0 ? S May05 0:01 [vmmemctl] root 907 0.0 0.0 0 0 ? S May05 0:00 [kdmflush] root 948 0.0 0.0 0 0 ? S May05 0:00 [jbd2/sda1-8] root 949 0.0 0.0 0 0 ? S May05 0:00 [ext4-dio-unwrit] root 950 0.0 0.0 0 0 ? S May05 0:00 [jbd2/dm-2-8] root 951 0.0 0.0 0 0 ? S May05 0:00 [ext4-dio-unwrit] root 998 0.0 0.0 0 0 ? S May05 0:00 [kauditd] root 1305 0.0 0.0 29772 872 ? S<sl May05 0:00 auditd root 1329 0.0 0.0 6168 588 ? Ss May05 0:00 /sbin/portreserve root 1339 0.0 0.0 255424 3656 ? Sl May05 0:00 /sbin/rsyslogd -i /var/run/syslogd.pid -c 5 root 1373 0.0 0.0 18388 740 ? Ss May05 0:01 irqbalance --pid=/var/run/irqbalance.pid rpc 1398 0.0 0.0 18984 864 ? Ss May05 0:00 rpcbind rpcuser 1420 0.0 0.0 23356 1320 ? Ss May05 0:00 rpc.statd dbus 1454 0.0 0.0 21572 1028 ? Ss May05 0:00 dbus-daemon --system root 1476 0.0 0.0 189088 3108 ? Ss May05 0:00 cupsd -C /etc/cups/cupsd.conf daemon 1506 0.0 8.4 2542796 334900 ? Sl 14:48 0:08 httpd -k restart daemon 1507 0.0 7.8 2520268 312384 ? Sl 14:48 0:06 httpd -k restart root 1508 0.0 0.0 4084 656 ? Ss May05 0:00 /usr/sbin/acpid daemon 1509 0.0 7.3 2501708 293056 ? Sl 14:48 0:05 httpd -k restart 68 1520 0.0 0.0 38264 2520 ? Ssl May05 0:00 hald root 1521 0.0 0.0 20404 1156 ? S May05 0:00 hald-runner root 1553 0.0 0.0 22524 1084 ? S May05 0:00 hald-addon-input: Listening on /dev/input/event2 /dev/input/event0 68 1577 0.0 0.0 18012 1040 ? S May05 0:00 hald-addon-acpi: listening on acpid socket /var/run/acpid.socket root 1600 0.0 0.0 452728 1808 ? Ssl May05 0:01 automount --pid-file /var/run/autofs.pid daemon 1631 0.0 7.7 2515980 307268 ? Sl 14:50 0:06 httpd -k restart root 1728 0.0 0.0 6272 288 ? Ss May05 0:00 /usr/sbin/mcelog --daemon root 2103 0.0 0.0 182916 2156 ? Ss May05 0:00 /usr/sbin/abrtd root 2137 0.0 0.0 108232 820 ? S May05 0:01 /bin/bash /usr/sbin/ksmtuned root 2165 0.0 0.0 21112 500 ? Ss May05 0:00 /usr/sbin/atd root 2182 0.0 0.1 438484 5656 ? Sl May05 0:00 libvirtd --daemon root 2260 0.0 0.0 10880 416 ? S< May05 0:00 /sbin/udevd -d root 2331 0.0 0.0 81588 2984 ? Ss May05 0:00 login -- root root 2336 0.0 0.0 4068 544 tty2 Ss+ May05 0:00 /sbin/mingetty /dev/tty2 root 2341 0.0 0.0 4068 540 tty3 Ss+ May05 0:00 /sbin/mingetty /dev/tty3 root 2343 0.0 0.0 4068 544 tty4 Ss+ May05 0:00 /sbin/mingetty /dev/tty4 root 2345 0.0 0.0 4068 540 tty5 Ss+ May05 0:00 /sbin/mingetty /dev/tty5 root 2347 0.0 0.0 4068 540 tty6 Ss+ May05 0:00 /sbin/mingetty /dev/tty6 root 2348 0.0 0.0 10880 432 ? S< May05 0:00 /sbin/udevd -d nobody 2372 0.0 0.0 12896 608 ? S May05 0:00 /usr/sbin/dnsmasq --strict-order --pid-file=/var/run/libvirt/network/default.pid --conf-file= --except-interface lo --bind-in root 2424 0.0 0.0 2085072 3056 ? Sl May05 0:00 /usr/sbin/console-kit-daemon --no-daemon root 2490 0.0 0.0 108360 1816 tty1 Ss+ May05 0:00 -bash root 2513 0.0 0.1 104640 4552 ? Ss May05 0:00 sshd: cc [priv] cc 2515 0.0 0.0 105344 2680 ? S May05 0:05 sshd: cc@pts/0 cc 2516 0.0 0.0 108364 1772 pts/0 Ss May05 0:00 -bash root 2543 0.0 0.0 166072 3004 pts/0 S May05 0:00 su root root 2544 0.0 0.0 108464 1980 pts/0 S+ May05 0:00 bash root 2644 0.0 0.0 64424 1428 ? Ss May05 0:00 /usr/sbin/certmonger -S -p /var/run/certmonger.pid root 2881 0.0 0.0 52132 836 ? Ss May05 0:00 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf root 3789 0.0 0.0 66260 1200 ? Ss May05 0:00 /usr/sbin/sshd root 5539 0.0 0.2 133548 7964 pts/0 Sl 15:50 0:03 redis-server *:6379 root 6790 0.0 0.0 0 0 ? S 17:41 0:00 [flush-253:0] root 6791 0.0 0.0 0 0 ? S 17:41 0:00 [flush-253:2] root 6881 0.0 0.1 104640 4548 ? Ss 17:44 0:00 sshd: teammember003 [priv] teammember003 6883 0.0 0.0 105024 2288 ? S 17:44 0:00 sshd: teammember003@pts/1 teammember003 6884 0.0 0.0 108364 1844 pts/1 Ss 17:44 0:00 -bash teammember003 9673 0.0 0.1 139192 4872 pts/1 S+ 18:32 0:00 vim laravel.log root 9846 0.0 0.4 225032 17924 pts/0 S 18:41 0:00 php ListOrdersSample.php root 9963 0.0 0.1 104632 4524 ? Ss 18:51 0:00 sshd: well [priv] root 9972 0.0 0.0 100928 572 ? S 18:51 0:00 sleep 60 well 9973 0.0 0.0 104632 1868 ? S 18:51 0:00 sshd: well@pts/2 well 9974 0.0 0.0 108364 1764 pts/2 Ss 18:51 0:00 -bash well 9997 0.0 0.0 110252 1148 pts/2 R+ 18:51 0:00 ps -aux root 29938 0.0 0.0 11480 1416 pts/0 S 09:49 0:00 /bin/sh /usr/local/mysql/bin/mysqld_safe --datadir=/usr/local/mysql/data --pid-file=/usr/local/mysql/data/team-test-serve mysql 30073 0.0 11.0 1927748 438248 pts/0 Sl 09:49 0:04 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plug root 31602 0.0 0.3 263084 13080 ? Ss 11:59 0:00 httpd -k restart [well@team-test-server ~]$ ps -aux | grep php Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ root 9846 0.0 0.4 225032 17924 pts/0 S 18:41 0:00 php ListOrdersSample.php well 10001 0.0 0.0 103332 848 pts/2 S+ 18:51 0:00 grep php [well@team-test-server ~]$ grep php ^C [well@team-test-server ~]$ grep php
w
https://books.google.com/books?id=w7-8Im-JkuQC&pg=PA6&lpg=PA6&dq=Linux+真正意义上的多任务、多用户操作系统