ps pwd

이전것/LINUX 2016. 3. 7. 20:36

ps 

시스템에서 현재 수행되고 있는 프로세스를 확인하는 기초 명령어


  PID TTY          TIME CMD

10402 pts/1    00:00:00 su

10403 pts/1    00:00:00 bash

20358 pts/1    00:00:00 ps


ps -ef 

: 전체 다보기


UID        PID  PPID  C STIME TTY          TIME CMD

root         1     0  0 02:00 ?        00:00:02 /sbin/init

root         2     0  0 02:00 ?        00:00:00 [kthreadd]

root         3     2  0 02:00 ?        00:00:00 [ksoftirqd/0]

root         4     2  0 02:00 ?        00:00:00 [kworker/0:0]

root         5     2  0 02:00 ?        00:00:00 [kworker/0:0H]

root         7     2  0 02:00 ?        00:00:04 [rcu_sched]

root         8     2  0 02:00 ?        00:00:00 [rcu_bh]

root         9     2  0 02:00 ?        00:00:00 [migration/0]

root        10     2  0 02:00 ?        00:00:00 [watchdog/0]

root        11     2  0 02:00 ?        00:00:00 [watchdog/1]

root        12     2  0 02:00 ?        00:00:00 [migration/1]

root        13     2  0 02:00 ?        00:00:00 [ksoftirqd/1]

root        14     2  0 02:00 ?        00:00:00 [kworker/1:0]

root        15     2  0 02:00 ?        00:00:00 [kworker/1:0H]

root        16     2  0 02:00 ?        00:00:00 [watchdog/2]

root        17     2  0 02:00 ?        00:00:00 [migration/2]

root        18     2  0 02:00 ?        00:00:01 [ksoftirqd/2]

root        20     2  0 02:00 ?        00:00:00 [kworker/2:0H]

root        21     2  0 02:00 ?        00:00:00 [watchdog/3]

root        22     2  0 02:00 ?        00:00:00 [migration/3]

root        23     2  0 02:00 ?        00:00:00 [ksoftirqd/3]

root        24     2  0 02:00 ?        00:00:00 [kworker/3:0]

root        25     2  0 02:00 ?        00:00:00 [kworker/3:0H]

root        26     2  0 02:00 ?        00:00:00 [khelper]

root        27     2  0 02:00 ?        00:00:00 [kdevtmpfs]

root        28     2  0 02:00 ?        00:00:00 [netns]

root        29     2  0 02:00 ?        00:00:00 [perf]

root        30     2  0 02:00 ?        00:00:00 [khungtaskd]

root        31     2  0 02:00 ?        00:00:00 [writeback]

root        32     2  0 02:00 ?        00:00:00 [ksmd]

root        33     2  0 02:00 ?        00:00:00 [khugepaged]

root        34     2  0 02:00 ?        00:00:00 [crypto]

root        35     2  0 02:00 ?        00:00:00 [kintegrityd]

root        36     2  0 02:00 ?        00:00:00 [bioset]

root        37     2  0 02:00 ?        00:00:00 [kblockd]

root        38     2  0 02:00 ?        00:00:00 [ata_sff]

root        39     2  0 02:00 ?        00:00:00 [md]

root        40     2  0 02:00 ?        00:00:00 [devfreq_wq]

root        42     2  0 02:00 ?        00:00:00 [kworker/1:1]

root        44     2  0 02:00 ?        00:00:00 [kswapd0]

root        45     2  0 02:00 ?        00:00:00 [fsnotify_mark]

root        46     2  0 02:00 ?        00:00:00 [ecryptfs-kthrea]

root        57     2  0 02:00 ?        00:00:00 [kthrotld]

root        58     2  0 02:00 ?        00:00:00 [kworker/3:1]

root        59     2  0 02:00 ?        00:00:00 [acpi_thermal_pm]

root        61     2  0 02:00 ?        00:00:00 [scsi_eh_0]

root        62     2  0 02:00 ?        00:00:00 [scsi_tmf_0]

root        63     2  0 02:00 ?        00:00:00 [scsi_eh_1]

root        64     2  0 02:00 ?        00:00:00 [scsi_tmf_1]

root        66     2  0 02:00 ?        00:00:00 [ipv6_addrconf]

root        87     2  0 02:00 ?        00:00:00 [deferwq]

root        88     2  0 02:00 ?        00:00:00 [charger_manager]

root        89     2  0 02:00 ?        00:00:00 [kworker/2:1]

root       140     2  0 02:00 ?        00:00:00 [kpsmoused]

root       142     2  0 02:00 ?        00:00:00 [mpt_poll_0]

root       143     2  0 02:00 ?        00:00:00 [mpt/0]

root       144     2  0 02:00 ?        00:00:00 [scsi_eh_2]

root       145     2  0 02:00 ?        00:00:00 [scsi_tmf_2]

root       146     2  0 02:00 ?        00:00:00 [scsi_eh_3]

root       147     2  0 02:00 ?        00:00:00 [scsi_tmf_3]

root       148     2  0 02:00 ?        00:00:00 [scsi_eh_4]

root       149     2  0 02:00 ?        00:00:00 [scsi_tmf_4]

root       150     2  0 02:00 ?        00:00:00 [scsi_eh_5]

root       151     2  0 02:00 ?        00:00:00 [scsi_tmf_5]

root       152     2  0 02:00 ?        00:00:00 [scsi_eh_6]

root       153     2  0 02:00 ?        00:00:00 [scsi_tmf_6]

root       154     2  0 02:00 ?        00:00:00 [scsi_eh_7]

root       155     2  0 02:00 ?        00:00:00 [scsi_tmf_7]

root       156     2  0 02:00 ?        00:00:00 [scsi_eh_8]

root       157     2  0 02:00 ?        00:00:00 [scsi_tmf_8]

root       158     2  0 02:00 ?        00:00:00 [scsi_eh_9]

root       159     2  0 02:00 ?        00:00:00 [scsi_tmf_9]

root       160     2  0 02:00 ?        00:00:00 [scsi_eh_10]

root       161     2  0 02:00 ?        00:00:00 [scsi_tmf_10]

root       162     2  0 02:00 ?        00:00:00 [scsi_eh_11]

root       163     2  0 02:00 ?        00:00:00 [scsi_tmf_11]

root       164     2  0 02:00 ?        00:00:00 [scsi_eh_12]

root       165     2  0 02:00 ?        00:00:00 [scsi_tmf_12]

root       166     2  0 02:00 ?        00:00:00 [scsi_eh_13]

root       167     2  0 02:00 ?        00:00:00 [scsi_tmf_13]

root       168     2  0 02:00 ?        00:00:00 [scsi_eh_14]

root       169     2  0 02:00 ?        00:00:00 [scsi_tmf_14]

root       170     2  0 02:00 ?        00:00:00 [scsi_eh_15]

root       171     2  0 02:00 ?        00:00:00 [scsi_tmf_15]

root       172     2  0 02:00 ?        00:00:00 [scsi_eh_16]

root       173     2  0 02:00 ?        00:00:00 [scsi_tmf_16]

root       174     2  0 02:00 ?        00:00:00 [scsi_eh_17]

root       175     2  0 02:00 ?        00:00:00 [scsi_tmf_17]

root       176     2  0 02:00 ?        00:00:00 [scsi_eh_18]

root       177     2  0 02:00 ?        00:00:00 [scsi_tmf_18]

root       178     2  0 02:00 ?        00:00:00 [scsi_eh_19]

root       179     2  0 02:00 ?        00:00:00 [scsi_tmf_19]

root       180     2  0 02:00 ?        00:00:00 [scsi_eh_20]

root       181     2  0 02:00 ?        00:00:00 [kworker/0:1]

root       182     2  0 02:00 ?        00:00:00 [scsi_tmf_20]

root       183     2  0 02:00 ?        00:00:00 [scsi_eh_21]

root       184     2  0 02:00 ?        00:00:00 [scsi_tmf_21]

root       185     2  0 02:00 ?        00:00:00 [scsi_eh_22]

root       186     2  0 02:00 ?        00:00:00 [scsi_tmf_22]

root       187     2  0 02:00 ?        00:00:00 [scsi_eh_23]

root       188     2  0 02:00 ?        00:00:00 [scsi_tmf_23]

root       189     2  0 02:00 ?        00:00:00 [scsi_eh_24]

root       190     2  0 02:00 ?        00:00:00 [scsi_tmf_24]

root       191     2  0 02:00 ?        00:00:00 [scsi_eh_25]

root       192     2  0 02:00 ?        00:00:00 [scsi_tmf_25]

root       193     2  0 02:00 ?        00:00:00 [scsi_eh_26]

root       194     2  0 02:00 ?        00:00:00 [scsi_tmf_26]

root       195     2  0 02:00 ?        00:00:00 [scsi_eh_27]

root       196     2  0 02:00 ?        00:00:00 [scsi_tmf_27]

root       197     2  0 02:00 ?        00:00:00 [scsi_eh_28]

root       198     2  0 02:00 ?        00:00:00 [scsi_tmf_28]

root       199     2  0 02:00 ?        00:00:00 [scsi_eh_29]

root       200     2  0 02:00 ?        00:00:00 [scsi_tmf_29]

root       201     2  0 02:00 ?        00:00:00 [scsi_eh_30]

root       202     2  0 02:00 ?        00:00:00 [scsi_tmf_30]

root       203     2  0 02:00 ?        00:00:00 [scsi_eh_31]

root       204     2  0 02:00 ?        00:00:00 [scsi_tmf_31]

root       231     2  0 02:00 ?        00:00:00 [scsi_eh_32]

root       232     2  0 02:00 ?        00:00:00 [scsi_tmf_32]

root       233     2  0 02:00 ?        00:00:00 [kworker/1:1H]

root       244     2  0 02:00 ?        00:00:02 [jbd2/sda1-8]

root       245     2  0 02:00 ?        00:00:00 [ext4-rsv-conver]

root       253     2  0 02:00 ?        00:00:00 [kworker/3:1H]

root       254     2  0 02:00 ?        00:00:00 [kworker/2:1H]

root       417     1  0 02:00 ?        00:00:00 upstart-udev-bridge --daemon

root       431     1  0 02:00 ?        00:00:00 /lib/systemd/systemd-udevd --daemon

root       475     1  0 02:00 ?        00:00:00 upstart-file-bridge --daemon

syslog     487     1  0 02:00 ?        00:00:07 rsyslogd

message+   494     1  0 02:00 ?        00:00:02 dbus-daemon --system --fork

root       530     2  0 02:00 ?        00:00:00 [ttm_swap]

root       534     1  0 02:00 ?        00:00:00 /usr/sbin/bluetoothd

root       547     1  0 02:00 ?        00:00:00 /lib/systemd/systemd-logind

root       564     1  0 02:00 ?        00:00:09 /usr/sbin/cupsd -f

root       567     2  0 02:00 ?        00:00:00 [krfcommd]

root       697     1  0 02:00 ?        00:00:00 upstart-socket-bridge --daemon

root       725     1  0 02:00 ?        00:00:00 /usr/sbin/ModemManager

root       828     1  0 02:00 ?        00:00:01 NetworkManager

root       868     1  0 02:00 ?        00:00:00 /usr/lib/policykit-1/polkitd --no-debug

root       871     1  0 02:00 tty4     00:00:00 /sbin/getty -8 38400 tty4

root       875     1  0 02:00 tty5     00:00:00 /sbin/getty -8 38400 tty5

root       876     1  0 02:00 ?        00:00:17 thermald --no-daemon --dbus-enable

root       884     1  0 02:00 tty2     00:00:00 /sbin/getty -8 38400 tty2

root       885     1  0 02:00 tty3     00:00:00 /sbin/getty -8 38400 tty3

root       888     1  0 02:00 tty6     00:00:00 /sbin/getty -8 38400 tty6

root       924     1  0 02:00 ?        00:00:00 cron

root       971     1  0 02:00 ?        00:00:00 /usr/sbin/cups-browsed

root       982     1  0 02:00 ?        00:00:32 /usr/sbin/irqbalance

root       997     1  0 02:00 ?        00:00:00 acpid -c /etc/acpi/events -s /var/run/acpid.socket

kernoops  1005     1  0 02:00 ?        00:00:00 /usr/sbin/kerneloops

whoopsie  1047     1  0 02:00 ?        00:00:00 whoopsie

root      1066   828  0 02:00 ?        00:00:00 /sbin/dhclient -d -sf /usr/lib/NetworkManager/nm-dhcp-client.action -pf /run/sendsigs.omit

root      1088     2  0 02:00 ?        00:00:00 [kworker/0:1H]

nobody    1089   828  0 02:00 ?        00:00:06 /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-interfaces --pid-file

root      8140     1  0 02:01 ?        00:00:00 /usr/sbin/vmware-vmblock-fuse -o subtype=vmware-vmblock,default_permissions,allow_other /v

root      8158     1  0 02:01 ?        00:00:25 /usr/sbin/vmtoolsd

root      8227     1  0 02:01 ?        00:00:00 tpvmlpd2

root      8335     1  0 02:01 ?        00:00:00 lightdm

root      8343  8335  4 02:01 tty7     00:03:30 /usr/bin/X -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswit

root      8348     1  0 02:01 ?        00:00:00 /usr/lib/accountsservice/accounts-daemon

root      8362     1  0 02:01 tty1     00:00:00 /sbin/getty -8 38400 tty1

root      8376     2  0 02:01 ?        00:00:00 [kauditd]

root      8418  8335  0 02:01 ?        00:00:00 lightdm --session-child 12 19

root      8447     1  0 02:01 ?        00:00:00 /usr/lib/upower/upowerd

rtkit     8484     1  0 02:01 ?        00:00:02 /usr/lib/rtkit/rtkit-daemon

colord    8690     1  0 02:02 ?        00:00:00 /usr/lib/colord/colord

guest     8759     1  0 02:02 ?        00:00:00 /usr/bin/gnome-keyring-daemon --daemonize --login

guest     8776  8418  0 02:02 ?        00:00:00 init --user

guest     8863  8776  0 02:02 ?        00:00:01 dbus-daemon --fork --session --address=unix:abstract=/tmp/dbus-t1OTVWcGIn

guest     8874  8776  0 02:02 ?        00:00:00 upstart-event-bridge

guest     8886  8776  0 02:02 ?        00:00:00 /usr/lib/i386-linux-gnu/hud/window-stack-bridge

guest     8897  8776  0 02:02 ?        00:00:00 upstart-dbus-bridge --daemon --system --user --bus-name system

guest     8900  8776  0 02:02 ?        00:00:00 upstart-dbus-bridge --daemon --session --user --bus-name session

guest     8905  8776  0 02:02 ?        00:00:00 upstart-file-bridge --daemon --user

guest     8906  8776  0 02:02 ?        00:00:03 /usr/bin/ibus-daemon --daemonize --xim

guest     8926  8776  0 02:02 ?        00:00:02 /usr/lib/i386-linux-gnu/bamf/bamfdaemon

guest     8936  8776  0 02:02 ?        00:00:00 /usr/lib/gvfs/gvfsd

guest     8938  8776  0 02:02 ?        00:00:00 /usr/lib/dconf/dconf-service

guest     8944  8776  0 02:02 ?        00:00:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes

guest     8967  8906  0 02:02 ?        00:00:00 /usr/lib/ibus/ibus-dconf

guest     8968  8906  0 02:02 ?        00:00:01 /usr/lib/ibus/ibus-ui-gtk3

guest     8972  8776  0 02:02 ?        00:00:00 /usr/lib/ibus/ibus-x11 --kill-daemon

guest     8992  8776  0 02:02 ?        00:00:00 /usr/lib/i386-linux-gnu/gconf/gconfd-2

guest     9009  8906  0 02:02 ?        00:00:00 /usr/lib/ibus/ibus-engine-simple

guest     9039  8776  0 02:02 ?        00:00:34 /usr/lib/unity-settings-daemon/unity-settings-daemon

guest     9043  8776  0 02:02 ?        00:00:01 /usr/lib/i386-linux-gnu/hud/hud-service

guest     9048  8776  0 02:02 ?        00:00:00 /usr/lib/at-spi2-core/at-spi-bus-launcher --launch-immediately

guest     9049  8776  0 02:02 ?        00:00:00 gnome-session --session=ubuntu

guest     9055  9048  0 02:02 ?        00:00:00 /bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3

guest     9057  8776  0 02:02 ?        00:00:04 /usr/lib/unity/unity-panel-service

guest     9067  8776  0 02:02 ?        00:00:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session

guest     9075  8776  0 02:02 ?        00:00:00 /usr/lib/i386-linux-gnu/indicator-keyboard-service --use-gtk

guest     9077  8776  0 02:02 ?        00:00:00 /usr/lib/i386-linux-gnu/indicator-messages/indicator-messages-service

guest     9078  8776  0 02:02 ?        00:00:00 /usr/lib/i386-linux-gnu/indicator-bluetooth/indicator-bluetooth-service

guest     9081  8776  0 02:02 ?        00:00:00 /usr/lib/i386-linux-gnu/indicator-power/indicator-power-service

guest     9083  8776  0 02:02 ?        00:00:00 /usr/lib/i386-linux-gnu/indicator-datetime/indicator-datetime-service

guest     9087  8776  0 02:02 ?        00:00:00 /usr/lib/i386-linux-gnu/indicator-sound/indicator-sound-service

guest     9089  8776  0 02:02 ?        00:00:01 /usr/lib/i386-linux-gnu/indicator-printers/indicator-printers-service

guest     9096  8776  0 02:02 ?        00:00:00 /usr/lib/i386-linux-gnu/indicator-session/indicator-session-service

guest     9097  8776  0 02:02 ?        00:00:00 /usr/lib/i386-linux-gnu/indicator-application/indicator-application-service

guest     9124  8776  0 02:02 ?        00:00:00 /usr/lib/evolution/evolution-source-registry

guest     9128  8776  0 02:02 ?        00:00:00 /usr/bin/pulseaudio --start --log-target=syslog

guest     9146  8776  0 02:02 ?        00:00:01 /usr/lib/i386-linux-gnu/notify-osd

guest     9172  9049  1 02:02 ?        00:01:22 compiz

guest     9177  8776  0 02:02 ?        00:00:00 /usr/lib/evolution/evolution-calendar-factory

guest     9185  9049  0 02:02 ?        00:00:00 nm-applet

guest     9189  9049  0 02:02 ?        00:00:00 /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1

guest     9192  9049  0 02:02 ?        00:00:18 nautilus -n

guest     9197  9049  0 02:02 ?        00:00:00 /usr/lib/unity-settings-daemon/unity-fallback-mount-helper

guest     9203  8776  0 02:02 ?        00:00:25 /usr/lib/vmware-tools/sbin32/vmtoolsd -n vmusr --blockFd 3

guest     9208  8776  0 02:02 ?        00:00:00 /usr/lib/gvfs/gvfsd-metadata

guest     9226  8776  0 02:02 ?        00:00:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor

root      9238     1  0 02:02 ?        00:00:00 /usr/lib/udisks2/udisksd --no-debug

guest     9252  8776  0 02:02 ?        00:00:00 /usr/lib/gvfs/gvfs-afc-volume-monitor

guest     9257  8776  0 02:02 ?        00:00:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor

guest     9261  8776  0 02:02 ?        00:00:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor

guest     9287  8776  0 02:02 ?        00:00:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.9 /org/gtk/gvfs/exec_spaw/0

guest     9320  8776  0 02:02 ?        00:00:00 /usr/lib/gvfs/gvfsd-burn --spawner :1.9 /org/gtk/gvfs/exec_spaw/1

lp        9372   564  0 02:02 ?        00:00:01 /usr/lib/cups/notifier/dbus dbus:// 

guest     9390  8776  0 02:02 ?        00:00:04 /usr/lib/i386-linux-gnu/unity-scope-home/unity-scope-home

guest     9402  8776  0 02:02 ?        00:00:02 /usr/bin/unity-scope-loader applications/applications.scope applications/scopes.scope comm

guest     9404  8776  0 02:02 ?        00:00:00 /usr/lib/i386-linux-gnu/unity-lens-files/unity-files-daemon

guest     9413  8776  0 02:02 ?        00:00:00 /usr/bin/zeitgeist-daemon

guest     9431  8776  0 02:02 ?        00:00:00 /usr/lib/i386-linux-gnu/zeitgeist-fts

guest     9433  8776  0 02:02 ?        00:00:00 zeitgeist-datahub

guest     9449  9431  0 02:02 ?        00:00:00 /bin/cat

guest     9471  8776  0 02:02 ?        00:00:00 /usr/lib/i386-linux-gnu/unity-lens-music/unity-music-daemon

guest     9482  9049  0 02:02 ?        00:00:00 telepathy-indicator

guest     9490  8776  0 02:02 ?        00:00:00 /usr/lib/telepathy/mission-control-5

root      9499     2  0 02:02 ?        00:00:00 [kworker/2:2]

guest     9660  9049  0 02:03 ?        00:00:02 update-notifier

guest     9789  8776  0 02:03 ?        00:00:04 /usr/lib/gvfs/gvfsd-http --spawner :1.9 /org/gtk/gvfs/exec_spaw/2

guest     9821  8776  0 02:03 ?        00:00:16 gnome-terminal

guest     9829  9821  0 02:03 ?        00:00:00 gnome-pty-helper

guest     9830  9821  0 02:03 pts/1    00:00:00 bash

guest     9944  9049  0 02:04 ?        00:00:00 /usr/lib/i386-linux-gnu/deja-dup/deja-dup-monitor

root     10402  9830  0 02:07 pts/1    00:00:00 su root

root     10403 10402  0 02:07 pts/1    00:00:00 bash

root     16018     2  0 02:45 ?        00:00:13 [kworker/u16:2]

guest    18029  8776  0 02:56 ?        00:00:04 plank

root     19599     2  0 03:06 ?        00:00:00 [kworker/u16:0]

root     20345     2  0 03:11 ?        00:00:00 [kworker/u16:1]

root     20695 10403  0 03:14 pts/1    00:00:01 ps -ef




ps -f -U USERID -u USERID

: ID가 USERID인 사람으로 돌아가는 프로세스 보기



pwd


: 현재 디렉토리 위치 알려줌



'이전것 > LINUX' 카테고리의 다른 글

uiux 1  (0) 2016.03.15
리눅스 기본 명령어  (0) 2016.03.14
vim 설치  (0) 2016.03.14
pstree  (0) 2016.03.07
우분투 ubuntu root 계정 암호 설정  (0) 2016.03.07
블로그 이미지

잉비니

,