若沒有執行X-Window則用下列方式
ps -eF r
-e 顯示所有程序
-F 顯示詳細資訊
r 僅顯示目前運作中程序
l BSD詳細資訊格式
詳細使用方式請參照man ps說明
顯示格式說明:
<pre class="c" name="code"> KEY LONG DESCRIPTION
c cmd simple name of executable
C pcpu cpu utilization
f flags flags as in long format F field
g pgrp process group ID
G tpgid controlling tty process group ID
j cutime cumulative user time
J cstime cumulative system time
k utime user time
m min_flt number of minor page faults
M maj_flt number of major page faults
n cmin_flt cumulative minor page faults
N cmaj_flt cumulative major page faults
o session session ID
p pid process ID
P ppid parent process ID
r rss resident set size
R resident resident pages
s size memory size in kilobytes
S share amount of shared pages
t tty the device number of the controlling tty
T start_time time process was started
U uid user ID number
u user user name
v vsize total VM size in KiB
y priority kernel scheduling priority
範例:
<pre class="c" name="code">$ ps -eF r
UID PID PPID C SZ RSS PSR STIME TTY STAT TIME CMD
boinc 1211 1171 73 9243 28532 1 Mar.23 ? RNl 166:43 ../../projects/setiathome.berkeley.edu/setiatho
DrBenson 1689 1 0 40006 26860 1 Mar.23 ? Rl 1:48 /usr/bin/yakuake -session 1020625e2601c30001358
DrBenson 19452 12790 0 1635 1104 1 00:44 pts/1 R+ 0:00 ps -Fe r
DrBenson 2179 1674 0 14272 36276 1 Mar.23 ? 00:00:49 /usr/bin/virtuoso-t +foreground +configfile /tmp/v
DrBenson 2258 1669 0 25934 19380 1 Mar.23 ? 00:00:02 /usr/bin/nepomukservicestub nepomukfileindexer
DrBenson 2259 1669 1 32764 37144 1 Mar.23 ? 00:02:42 /usr/bin/nepomukservicestub nepomukfilewatch
DrBenson 2635 1 0 15019 5800 1 Mar.23 ? 00:00:02 /usr/libexec/gvfs-udisks2-volume-monitor
DrBenson 3282 1 0 36605 12108 1 Mar.23 ? 00:00:01 kdeinit4: kuiserver [kdeinit]
DrBenson 3884 1480 5 218078 142124 0 Mar.23 ? 00:10:32 /opt/google/chrome/chrome
DrBenson 2179 1674 0 14272 36276 1 Mar.23 ? 00:00:49 /usr/bin/virtuoso-t +foreground +configfile /tmp/v
DrBenson 2258 1669 0 25934 19380 1 Mar.23 ? 00:00:02 /usr/bin/nepomukservicestub nepomukfileindexer
DrBenson 2259 1669 1 32764 37144 1 Mar.23 ? 00:02:42 /usr/bin/nepomukservicestub nepomukfilewatch
DrBenson 2635 1 0 15019 5800 1 Mar.23 ? 00:00:02 /usr/libexec/gvfs-udisks2-volume-monitor
DrBenson 3282 1 0 36605 12108 1 Mar.23 ? 00:00:01 kdeinit4: kuiserver [kdeinit]
DrBenson 3884 1480 5 218078 142124 0 Mar.23 ? 00:10:32 /opt/google/chrome/chrome