亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? unx19.htm

?? Unix Unleashed, Third Edition is written with the power user and system administrator in mind. This
?? HTM
?? 第 1 頁 / 共 5 頁
字號:
<HTML>

<HEAD>

<TITLE>UNIX Unleashed unx19.htm</TITLE>

<LINK REL="ToC" HREF="index.htm">

<LINK REL="Next" HREF="unx20.htm">

<LINK REL="Previous" HREF="unx18.htm"></HEAD>

<BODY TEXT="#000000" LINK="#0000FF" VLINK="#800080" bgcolor=white>

<P><A HREF="unx18.htm"><IMG SRC="bluprev.gif" WIDTH = 32 HEIGHT = 32 BORDER = 0 ALT="Previous Page"></A>

<A HREF="index.htm"><IMG SRC="blutoc.gif" WIDTH = 32 HEIGHT = 32 BORDER = 0 ALT="TOC"></A>

<A HREF="unx20.htm"><IMG SRC="blunext.gif" WIDTH = 32 HEIGHT = 32 BORDER = 0 ALT="Next Page"></A>

<A HREF="index.htm"><IMG SRC="bluprev.gif" WIDTH = 32 HEIGHT = 32 BORDER = 0 ALT="Home"></A>

</P><UL>

<LI>

<A HREF="#I1">19 &#151; Administering Processes</A></LI>

<UL>

<UL>

<UL>

<UL>

<LI>

<A HREF="#I3">By Rachel and Robert Sartin</A></LI></UL></UL>

<LI>

<A HREF="#I4">Monitoring Processes&#151;ps and time</A></LI>

<UL>

<LI>

<A HREF="#I5">What Is ps?</A></LI>

<LI>

<A HREF="#I6">Introduction to SYSV ps Output</A></LI>

<LI>

<A HREF="#I7">Introduction to BSD ps Output</A></LI>

<LI>

<A HREF="#I8">Checking on Your Processes with ps</A></LI>

<UL>

<LI>

<A HREF="#I9">Everything You Own</A></LI>

<LI>

<A HREF="#I10">Specific Processes</A></LI>

<LI>

<A HREF="#I11">Specific Process Groups</A></LI>

<LI>

<A HREF="#I12">Specific Terminal</A></LI>

<LI>

<A HREF="#I13">Specific User</A></LI></UL>

<LI>

<A HREF="#I14">Checking on a Process with time</A></LI></UL>

<LI>

<A HREF="#I15">Background and Foreground Processes</A></LI>

<UL>

<LI>

<A HREF="#I16">Foreground Processing</A></LI>

<LI>

<A HREF="#I17">Where Is the Background and Why Should You Go There?</A></LI>

<LI>

<A HREF="#I18">Job Control</A></LI></UL>

<LI>

<A HREF="#I19">Signaling Processes</A></LI>

<LI>

<A HREF="#I20">Killing Processes</A></LI>

<UL>

<LI>

<A HREF="#I21">The kill Command</A></LI>

<LI>

<A HREF="#I22">Finding What to Kill Using ps</A></LI>

<UL>

<LI>

<A HREF="#I23">Determining Which Signal to Send</A></LI></UL>

<LI>

<A HREF="#I24">The dokill Script An Example</A></LI></UL>

<LI>

<A HREF="#I25">Logging Out with Background Processes</A></LI>

<UL>

<LI>

<A HREF="#I26">Using nohup</A></LI></UL>

<LI>

<A HREF="#I27">Prioritizing Processes</A></LI>

<UL>

<LI>

<A HREF="#I28">What Is a Priority?</A></LI>

<LI>

<A HREF="#I29">Being Nice</A></LI>

<LI>

<A HREF="#I30">Using renice on a Running Process</A></LI></UL>

<LI>

<A HREF="#I31">Job Control and Process Groups</A></LI>

<UL>

<LI>

<A HREF="#I32">Using the jobs Command</A></LI>

<LI>

<A HREF="#I33">Putting Jobs in the Foreground</A></LI>

<LI>

<A HREF="#I34">Suspending Process Groups</A></LI>

<LI>

<A HREF="#I35">Putting Jobs in the Background</A></LI>

<LI>

<A HREF="#I36">Using wait to Wait for Background Jobs</A></LI>

<LI>

<A HREF="#I37">Using csh notify to Learn About Changes Sooner</A></LI></UL>

<LI>

<A HREF="#I38">My System Is Slow&#151;Performance Tuning</A></LI>

<UL>

<LI>

<A HREF="#I39">Monitoring the System with ps</A></LI>

<LI>

<A HREF="#I40">Monitoring the System with sar</A></LI></UL>

<LI>

<A HREF="#I41">Summary</A></LI></UL></UL></UL>



<H1 ALIGN="CENTER">

<CENTER><A ID="I1" NAME="I1">

<BR>

<FONT SIZE=5><A ID="I2" NAME="I2"></A><B>19 &#151; Administering Processes</B>

<BR></FONT></A></CENTER></H1>

<H5 ALIGN="CENTER">

<CENTER><A ID="I3" NAME="I3">

<FONT SIZE=3><B>By Rachel and Robert Sartin</B>

<BR></FONT></A></CENTER></H5>

<P>You use processes on UNIX every time you want to get something done. Each command (that isn't built into your shell) you run will start one or more new processes to perform your desired task. To get the most benefit out of your UNIX machine you need to 

learn how to monitor and control the processes that are running on it. You will need to know how to make large, but not time-critical, tasks take less of your CPU time. You will need to learn how to shut down programs that have gone astray. You will need 
to learn how to improve the performance of your machine.

<BR></P>

<H3 ALIGN="CENTER">

<CENTER><A ID="I4" NAME="I4">

<FONT SIZE=4><B>Monitoring Processes&#151;</B><B><I>ps</I></B><B> and </B><B><I>time</I></B>

<BR></FONT></A></CENTER></H3>

<P>The first step in controlling processes in UNIX is to learn how to monitor them. By using the process-monitoring commands in UNIX, you will be able to find what programs are using your CPU time, find jobs that are not completing, and generally explore 
what is happening to your machine.

<BR></P>

<H4 ALIGN="CENTER">

<CENTER><A ID="I5" NAME="I5">

<FONT SIZE=3><B>What Is </B><B><I>ps</I></B><B>?</B>

<BR></FONT></A></CENTER></H4>

<P>The first command you should learn about is the ps command, which prints out the process status for some or all of the processes running on your UNIX machine.

<BR></P>

<P>There are two distinctly different versions of ps: the SYSV version and the BSD version. Your machine might have either one or both of the ps commands. If you are running on a machine that is mostly based on Berkeley UNIX, try looking in /usr/5bin for 
the SYSV version of ps. If you are running on a machine that is mostly based on System V UNIX, try looking in /usr/ucb for the BSD version of ps. Check your manuals and the output of your ps program to figure out which one you have. You may want to read 
the introductions to both SYSV and BSD ps output since some systems either combine features of both (for example, AIX) or have both versions (for example, Solaris 2.3, which has SYSV /usr/bin/ps and BSD /usr/ucb/ps).

<BR></P>

<H4 ALIGN="CENTER">

<CENTER><A ID="I6" NAME="I6">

<FONT SIZE=3><B>Introduction to SYSV </B><B><I>ps</I></B><B> Output</B>

<BR></FONT></A></CENTER></H4>

<P>If you are using SYSV, you should read this section to learn about the meaning of the various fields output by ps. 

<BR></P>

<P>Look at what happens when you enter ps:

<BR></P>

<PRE>$ ps

   PID TTY      TIME COMD

  1400 pts/5    0:01 sh

  1405 pts/5    0:00 ps

$ </PRE>

<P>The PID field gives you the process identifier, which uniquely identifies a particular process. The TTY fields tell what terminal the process is using. It will have ? if the process has no controlling terminal. It may say console if the process is on 
the system console. The terminal listed may be a pseudo terminal, which is how UNIX handles terminal-like connections from a GUI or over the network. Pseudo terminal names often begin with pt (or just p, if your system uses very short names). The TIME 
field tells how much CPU time the process has used. The COMD field (sometimes labelled CMD or COMMAND) tells what command the process is running.

<BR></P>

<P>Now look at what happens when you enter ps -f:

<BR></P>

<PRE>$ ps -f

     UID   PID  PPID  C    STIME TTY      TIME COMD

  sartin  1400  1398 80 18:31:32 pts/5    0:01 -sh

  sartin  1406  1400 25 18:34:33 pts/5    0:00 ps -f

$</PRE>

<P>The UID field tells which user ID owns the process. Your login name should appear here. The PPID field tells the process identifier of the parent of the process; notice that the PPID of ps -f is the same as the PID of -sh. The C field is 
process-utilization information used by the scheduler. The STIME is the time the process started.

<BR></P>

<P>Next, look at what happens when you enter ps -l:

<BR></P>

<PRE>$ ps -l

 F S   UID   PID  PPID  C PRI NI     ADDR     SZ    WCHAN TTY      TIME COMD

 8 S   343  1400  1398 80   1 20 fc315000    125 fc491870 pts/5    0:01 sh

 8 O   343  1407  1400 11   1 20 fc491800    114          pts/5    0:00 ps

$</PRE>

<P>Note that the UID is printed out numerically this time. The PRI field is the priority of the process; a lower number means more priority to the scheduler. The NI field is the nice value. See the section &quot;Prioritizing Processes&quot; for more 
information on the scheduler and nice values. The SZ field shows the process size. The WCHAN field tells what event, if any, the process is waiting for. Interpretation of the WCHAN field is specific to your system.

<BR></P>

<P>On some SYSV systems with real-time scheduling additions, you may see output such as the following if you enter ps -c:

<BR></P>

<PRE>$ ps -c

   PID  CLS PRI TTY      TIME COMD

  1400   TS  62 pts/5    0:01 sh

  1409   TS  62 pts/5    0:00 ps

$ </PRE>

<P>The CLS field tells the scheduling class of the process; TS means time sharing and is what you will usually see. You may also see SYS for system processes and RT for real-time processes.

<BR></P>

<P>On some SYSV systems running the Fair Share Scheduler, you may see output such as the following if you enter ps -f:

<BR></P>

<PRE>$ ps -f

     UID    FSID   PID  PPID  C    STIME TTY      TIME COMMAND

  sartin rddiver 18735 18734  1  Mar 12  ttys0    0:01 -ksh

  sartin rddiver 19021 18735  1 18:47:37 ttys0    0:01 xdivesim

  sartin rddiver 19037 18735  4 18:52:58 ttys0    0:00 ps -f

    root default 18734   136  0  Mar 12  ttys0    0:01 rlogind

$ </PRE>

<P>The extra FSID field tells the fair share group for the process.

<BR></P>

<H4 ALIGN="CENTER">

<CENTER><A ID="I7" NAME="I7">

<FONT SIZE=3><B>Introduction to BSD </B><B><I>ps</I></B><B> Output</B>

<BR></FONT></A></CENTER></H4>

<P>If you are using BSD, you should read this section to learn about the meaning of the various fields output by ps. 

<BR></P>

<P>Look at what happens when you enter ps:

<BR></P>

<PRE>$ ps

  PID TT STAT  TIME COMMAND

22711 c0 T     0:00 rlogin brat

22712 c0 T     0:00 rlogin brat

23121 c0 R     0:00 ps

$ </PRE>

<P>The PID field gives you the process identifier, which uniquely identifies a particular process. The TT fields tell what terminal the process is using. It will have ? if the process has no controlling terminal. It may say co if the process is on the 
system console. The terminal listed may be a pseudo terminal. The STAT field shows the process state. Check your manual entry for ps to learn more about state. The TIME field tells how much CPU time the process has used. The COMMAND field tells what 
command the process is running. Normally, the COMMAND field lists the command arguments stored in the process itself. On some systems, these arguments can be overwritten by the process. If you use the c option, the real command name will be given, but not 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品国产**网站演员| 国产精品国产馆在线真实露脸 | 久久亚洲欧美国产精品乐播| 亚洲美女视频在线观看| 91.com视频| 欧美日韩三级在线| 色94色欧美sute亚洲13| 亚洲欧洲日韩在线| 成人国产精品免费观看动漫| 日韩一区二区三区高清免费看看| 欧美mv日韩mv国产网站| 国产一区二区视频在线| 日韩精品中文字幕一区| 国产精品一级片| 久久日一线二线三线suv| 欧美不卡一区二区| 成人91在线观看| 国产最新精品免费| 狠狠色综合日日| 丝袜亚洲另类丝袜在线| 日韩欧美卡一卡二| 色94色欧美sute亚洲13| 麻豆精品视频在线观看视频| 91精品国产福利在线观看| 91在线视频免费观看| 丁香啪啪综合成人亚洲小说| 亚洲最大的成人av| 2024国产精品视频| 精油按摩中文字幕久久| 26uuu精品一区二区在线观看| 粉嫩一区二区三区性色av| 日韩女优av电影| 紧缚奴在线一区二区三区| 亚洲欧美日韩电影| 日韩一区二区三区在线观看| 蜜桃一区二区三区在线观看| 亚洲裸体xxx| www一区二区| 欧美私人免费视频| 99久久久无码国产精品| 美日韩黄色大片| 亚洲午夜免费福利视频| 亚洲无人区一区| 国产午夜精品美女毛片视频| 美女视频黄 久久| 日本精品一区二区三区高清| 亚洲品质自拍视频| 日本高清视频一区二区| 亚洲欧美日韩在线| 欧美性大战久久久久久久| 五月天激情综合网| 日韩欧美精品在线| 国产福利精品一区二区| 成人免费在线观看入口| 91久久香蕉国产日韩欧美9色| 亚洲免费av高清| 在线播放91灌醉迷j高跟美女 | 91精品福利在线| 亚洲国产一区二区三区青草影视| 56国语精品自产拍在线观看| 激情五月婷婷综合| 国产精品高潮久久久久无| 欧美色图片你懂的| 久久成人麻豆午夜电影| 国产精品久久久一区麻豆最新章节| 色天使色偷偷av一区二区| 秋霞午夜av一区二区三区| 国产偷国产偷亚洲高清人白洁| 91免费在线看| 男人的天堂亚洲一区| 国产精品国产自产拍高清av王其| 欧美日韩中字一区| 国产精品123| 天天综合网天天综合色| 欧美国产一区在线| 欧美精品v国产精品v日韩精品| 国产成都精品91一区二区三| 午夜精品福利久久久| 国产欧美在线观看一区| 欧美精品一二三| 成人毛片在线观看| 免费看黄色91| 亚洲一区二区三区在线播放| 欧美精品一区二区在线播放| 欧美在线视频日韩| 不卡的av在线播放| 精品一区二区三区免费观看| 亚洲一区二区三区四区五区中文 | 亚洲黄网站在线观看| 日韩精品一区二区三区swag| 色久优优欧美色久优优| 成人小视频在线| 美国十次综合导航| 五月天精品一区二区三区| 日韩理论电影院| 国产清纯美女被跳蛋高潮一区二区久久w | 日本免费新一区视频| 亚洲自拍偷拍图区| 国产精品毛片久久久久久久| 欧美videossexotv100| 欧美另类久久久品| 在线观看亚洲专区| 99久久er热在这里只有精品66| 国内精品自线一区二区三区视频| 亚洲国产毛片aaaaa无费看 | 99re这里都是精品| 国产99久久精品| 国产一区二区免费看| 九九视频精品免费| 日韩va亚洲va欧美va久久| 一区二区欧美在线观看| 亚洲视频一区在线| 中文字幕中文在线不卡住| 日本一区二区电影| 亚洲国产成人私人影院tom| 久久综合国产精品| 精品国产成人系列| ww亚洲ww在线观看国产| 国产亚洲综合在线| 久久精品人人爽人人爽| 久久久www成人免费无遮挡大片| 精品国一区二区三区| 久久蜜桃一区二区| 久久久影院官网| 中文字幕精品一区| 国产精品国产三级国产专播品爱网| 国产精品久久看| 亚洲宅男天堂在线观看无病毒| 亚洲一区二区三区四区在线免费观看| 亚洲一区二区三区免费视频| 亚洲福利一二三区| 青青草国产成人99久久| 精品系列免费在线观看| 国产麻豆91精品| 99精品视频免费在线观看| 一本一本大道香蕉久在线精品| 欧美伊人精品成人久久综合97| 欧美日韩激情一区二区| 欧美一二三在线| 日本一区二区视频在线观看| 中文字幕一区二区三| 亚洲夂夂婷婷色拍ww47| 激情综合网天天干| 丁香天五香天堂综合| 欧美色区777第一页| 欧美精品一区二区久久久| ...av二区三区久久精品| 亚洲国产精品精华液网站| 久久国产精品色| 99久久亚洲一区二区三区青草| 欧美日韩精品一区二区三区蜜桃| 日韩精品一区国产麻豆| 国产精品夫妻自拍| 日日摸夜夜添夜夜添国产精品 | 中文字幕精品三区| 日韩经典中文字幕一区| 国产精品影视在线| 欧美日韩综合一区| 久久综合中文字幕| 亚洲精品网站在线观看| 国产资源精品在线观看| 91黄色免费看| 久久久久久久久久久99999| 亚洲影院在线观看| 成人午夜在线视频| 日韩午夜中文字幕| 一区二区在线观看av| 国产一区二区三区香蕉 | 亚洲成av人片一区二区三区| 国产成人免费在线视频| 欧美嫩在线观看| 亚洲视频一区在线| 成人精品鲁一区一区二区| 欧美日韩精品一区二区| 亚洲视频免费在线观看| 国产一区二区伦理片| 在线不卡的av| 亚洲国产三级在线| aa级大片欧美| 国产清纯美女被跳蛋高潮一区二区久久w| 日韩激情一二三区| 色呦呦日韩精品| 1024精品合集| av中文字幕一区| 欧美国产视频在线| 韩国女主播成人在线观看| 日韩一区二区三区三四区视频在线观看 | av在线不卡观看免费观看| 久久亚洲精品小早川怜子| 蜜臀久久久99精品久久久久久| 欧美在线啊v一区| 亚洲综合在线第一页| 色猫猫国产区一区二在线视频| 国产视频亚洲色图| 国产东北露脸精品视频| 精品国产免费一区二区三区四区| 秋霞电影网一区二区| 欧美二区三区的天堂| 图片区小说区国产精品视频| 欧美色爱综合网|