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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? unx18.htm

?? Unix Unleashed, Third Edition is written with the power user and system administrator in mind. This
?? HTM
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
<HTML>

<HEAD>

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

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

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

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

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

<P><A HREF="unxpt4au.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="unx19.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">18 &#150; What Is a Process?</A></LI>

<UL>

<UL>

<UL>

<UL>

<LI>

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

<LI>

<A HREF="#I3">What Happens When You Execute a Command?</A></LI>

<UL>

<LI>

<A HREF="#I5">Forking a Process</A></LI>

<LI>

<A HREF="#I6">Running a Command</A></LI></UL>

<LI>

<A HREF="#I7">Looking at Process</A></LI>

<LI>

<A HREF="#I8">Visiting the Shell Again</A></LI>

<UL>

<LI>

<A HREF="#I9">Processing a Command</A></LI>

<UL>

<LI>

<A HREF="#I10">Checking the Aliases and Built-Ins</A></LI>

<LI>

<A HREF="#I11">Make a New Process with fork</A></LI>

<LI>

<A HREF="#I12">Start a New Command with exec</A></LI>

<LI>

<A HREF="#I13">An Example</A></LI></UL>

<LI>

<A HREF="#I14">Executing in the Background</A></LI>

<UL>

<LI>

<A HREF="#I15">An Example</A></LI></UL></UL>

<LI>

<A HREF="#I16">Kinks in Your Pipeline</A></LI>

<LI>

<A HREF="#I17">A Special Process Called Daemon</A></LI>

<UL>

<LI>

<A HREF="#I18">init</A></LI>

<LI>

<A HREF="#I19">inetd</A></LI>

<LI>

<A HREF="#I20">cron</A></LI></UL>

<LI>

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



<H1 ALIGN="CENTER">

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

<BR>

<FONT SIZE=5><B>18 &#150; What Is a Process?</B>

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

<H5 ALIGN="CENTER">

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

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

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

<P>This chapter introduces the concept of processes and how you use UNIX to interact with them.

<BR></P>

<H3 ALIGN="CENTER">

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

<FONT SIZE=4><B>What Happens When You Execute a Command?</B>

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

<P><A ID="I4" NAME="I4"></A>When you execute a program on your UNIX system, the system creates a special environment for that program. This environment contains everything needed for the system to run the program as if no other program were running on the 

system.

<BR></P>

<H4 ALIGN="CENTER">

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

<FONT SIZE=3><B>Forking a Process</B>

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

<P>Each process has process context, which is everything that is unique about the state of the program you are currently running. The process context includes then following:

<BR></P>

<UL>

<LI>The text (program instructions) being run

<BR>

<BR></LI>

<LI>The memory used by the program being run

<BR>

<BR></LI>

<LI>The current working directory

<BR>

<BR></LI>

<LI>The files that are open and positions in the files

<BR>

<BR></LI>

<LI>Resource limits

<BR>

<BR></LI>

<LI>Access control information

<BR>

<BR></LI>

<LI>Others&#151;various low-level information

<BR>

<BR></LI></UL>

<P>Every time you execute a program the UNIX system does a fork, which performs a series of operations to create a process context and then execute your program in that context. The steps include the following:

<BR></P>

<OL>

<LI>Allocate a slot in the process table, a list of currently running programs kept by UNIX. UNIX creates the illusion of multiple programs running simultaneously by switching quickly between active processes in the process table. This allocation can fail 

for a number of reasons, including these:

<BR>

<BR></LI>

<UL>

<LI>You have exceeded your per user process limit, the maximum number of processes your UNIX system will allow you to run.

<BR>

<BR></LI>

<LI>The system runs out of open process slots. The UNIX kernel stores information about currently running processes in a table of processes. When this table runs out of room for new entries, you are unable to fork a new process.

<BR>

<BR></LI>

<LI>UNIX has run out of memory and does not have room for the text and data of the new process.

<BR>

<BR></LI></UL>

<LI>Assign a unique process identifier (PID) to the process. This identifier can be used to examine and control the process later.

<BR>

<BR></LI>

<LI>Copy the context of the parent, the process that requested the spawning of the new process.

<BR>

<BR></LI>

<LI>Return the new PID to the parent process. This enables the parent process to examine or control the process directly.

<BR>

<BR></LI></OL>

<P>After the fork is complete, UNIX runs your program. One of the differences between UNIX and many other operating systems is that UNIX performs this two-step procedure to run a program. The first step is to create a new process that's just like the 
parent. The second is to execute a different program. This procedure allows interesting variations. (See the section &quot;A Special Process Called Daemon.&quot;)

<BR></P>

<H4 ALIGN="CENTER">

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

<FONT SIZE=3><B>Running a Command</B>

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

<P>When you enter ls to look at the contents of your current working directory, UNIX does a series of things to create an environment for ls and the run it:

<BR></P>

<OL>

<LI>The shell has UNIX perform a fork. This creates a new process that the shell will use to run the ls program.

<BR>

<BR></LI>

<LI>The shell has UNIX perform an exec of the ls program. This replaces the shell program and data with the program and data for ls and then starts running that new program.

<BR>

<BR></LI>

<LI>The ls program is loaded into the new process context, replacing the text and data of the shell.

<BR>

<BR></LI>

<LI>The ls program performs its task, listing the contents of the current directory.

<BR>

<BR></LI></OL>

<H3 ALIGN="CENTER">

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

<FONT SIZE=4><B>Looking at Process</B>

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

<P>Because processes are so important to getting things done, UNIX has several commands that enable you to examine processes and modify their state. The most frequently used command is ps, which prints out the process status for processes running on your 
system. Each system has a slightly different version of the ps command, but there are two main variants, the System V version and the Berkeley version, covered in this section. Different versions of ps do similar things, but have somewhat different output 

and are controlled using different options. The X/Open Portability Guide makes an attempt to standardize somewhat on output of the ps command. The ps command is covered in more detail in chapter 19, &quot;Administrative Processes.&quot;

<BR></P>

<P>On a System V or XPG-compliant system, you can examine all the processes you are running by entering ps -f and you will get output such as the following:

<BR></P>

<PRE>$ ps -f

     UID   PID  PPID  C    STIME TTY      TIME COMMAND

    root 14931   136  0 08:37:48 ttys0    0:00 rlogind

  sartin 14932 14931  0 08:37:50 ttys0    0:00 -sh

  sartin 15339 14932  7 16:32:29 ttys0    0:00 ps -f

$</PRE>

<HR ALIGN=CENTER>

<NOTE>

<IMG SRC="note.gif" WIDTH = 35 HEIGHT = 35><B>NOTE:</B> After the first line, which is the header, each line of output tells about the status of a single process. The UID column tells the owner of the process. The PID column tells the process ID. The PPID 

tells the process ID of the parent process (the process that executed the fork). The STIME is the time the process began executing. The TIME is the amount of computer time the process has used. The COMMAND field tells what command line was executed.

<BR></NOTE>

<HR ALIGN=CENTER>

<P>Look at this example and you can see that root (the system administration user) is running rlogind as process 14931. This process is a special kind of administrative program, called a daemon (daemons are described in the section &quot;A Special Process 

Called Daemon&quot;). This particular daemon is responsible for managing a connection from rlogin, which is described in Chapter 8, &quot;Getting Around the Network.&quot; As you can see from the next line, there is a process called -sh, which is a Bourne 

shell. The shell has rlogind as its parent because the daemon did a fork to run the login shell. Similarly, there is a ps -f command that has the shell as its parent.

<BR></P>

<HR ALIGN=CENTER>

<NOTE>

<IMG SRC="imp.gif" WIDTH = 68 HEIGHT = 35><B>TIP:</B> The leading hyphen on the -sh in the output of ps means that the shell is executing as a login shell, which does certain special processing that other instances of the shell do not. See the chapter on 
your shell for more information on login shells.

<BR></NOTE>

<HR ALIGN=CENTER>

<H3 ALIGN="CENTER">

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

<FONT SIZE=4><B>Visiting the Shell Again</B>

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

<P>Earlier in this chapter you learned that the shell creates a new process for each command you execute. This section covers in a bit more detail how the shell creates and manages processes.

<BR></P>

<H4 ALIGN="CENTER">

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

<FONT SIZE=3><B>Processing a Command</B>

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

<P>When you type a command to your shell user interface, the shell performs a series of tasks to process the command. Although the steps may seem a bit cumbersome at first, they create an environment that is highly flexible.

<BR></P>

<H5 ALIGN="CENTER">

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

<FONT SIZE=3><B>Checking the Aliases and Built-Ins</B>

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

<P>The first thing the shell does is alias and built-in processing to see if your command is one of the shell's internally implemented functions. Each shell implements a number of functions internally either because external implementation would be 

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人免费高清| 欧美一区二区三区在线观看| 国产99一区视频免费| 麻豆精品视频在线观看免费| 日韩中文字幕区一区有砖一区 | 欧美亚日韩国产aⅴ精品中极品| 国产成人精品www牛牛影视| 精品在线亚洲视频| 精品一区二区国语对白| 七七婷婷婷婷精品国产| 日本不卡中文字幕| 免费高清成人在线| 男人的j进女人的j一区| 奇米一区二区三区av| 日韩—二三区免费观看av| 蜜臀91精品一区二区三区 | 91精品办公室少妇高潮对白| 色婷婷综合五月| 欧美系列一区二区| 91精品国产品国语在线不卡| 日韩免费视频线观看| wwwwww.欧美系列| 中文字幕va一区二区三区| 国产精品成人在线观看| 亚洲激情成人在线| 亚洲成人精品一区| 免费高清成人在线| 成人一级片网址| 色偷偷久久一区二区三区| 在线观看视频91| 日韩一区和二区| 久久久综合精品| 国产精品久久久久久久久久久免费看 | 亚洲成人在线观看视频| 日韩电影在线看| 国产成人自拍网| 色婷婷一区二区| 欧美精品第一页| 国产欧美日韩激情| 亚洲国产精品影院| 国产在线精品不卡| 色视频一区二区| 欧美r级电影在线观看| 欧美经典一区二区三区| 亚洲自拍偷拍av| 91精品欧美久久久久久动漫| 色综合久久88色综合天天免费| 欧美日韩精品高清| 91麻豆精品国产无毒不卡在线观看| 欧美视频一区二区三区在线观看| 日韩免费一区二区三区在线播放| 久久久久久久网| 亚洲同性gay激情无套| 五月天网站亚洲| 国产91精品精华液一区二区三区 | 欧美区视频在线观看| 亚洲精品一区二区精华| 亚洲乱码一区二区三区在线观看| 欧美aaa在线| 91视视频在线直接观看在线看网页在线看 | aaa欧美日韩| 欧美成人video| 一区二区在线观看视频| 91精品国产91热久久久做人人| 国产欧美日韩三级| 欧美aⅴ一区二区三区视频| 91在线一区二区三区| 精品黑人一区二区三区久久| 欧美剧在线免费观看网站| 欧美乱妇15p| 亚洲色图一区二区| 国产成人99久久亚洲综合精品| 欧美日韩dvd在线观看| 中文字幕日韩欧美一区二区三区| 久久国产精品露脸对白| 欧美日韩亚洲综合一区二区三区| 亚洲国产高清aⅴ视频| 奇米色一区二区| 欧美性大战xxxxx久久久| 欧美国产精品中文字幕| 精品一区二区三区免费视频| 欧美日产国产精品| 一区二区三区中文字幕电影| 成人免费视频app| 2023国产精品| 麻豆精品视频在线| 在线播放一区二区三区| 一区二区三区在线观看动漫 | 日韩免费在线观看| 婷婷六月综合亚洲| 欧美在线一二三| 亚洲欧美日韩中文字幕一区二区三区| 国产成人在线看| 精品国产1区二区| 麻豆国产精品视频| 视频一区在线视频| 欧美刺激午夜性久久久久久久| 亚洲韩国一区二区三区| 国产伦理精品不卡| 国产精品白丝jk白祙喷水网站| 成人美女在线视频| 久久精品夜色噜噜亚洲a∨| 精久久久久久久久久久| 日韩精品专区在线影院观看| 日本成人超碰在线观看| 日韩欧美中文字幕公布| 老色鬼精品视频在线观看播放| 欧美一区二区三区在线观看| 日本中文字幕一区二区有限公司| 欧美久久一区二区| 视频一区视频二区在线观看| 欧美一级高清片在线观看| 免费高清成人在线| 精品粉嫩aⅴ一区二区三区四区| 久久精品国产77777蜜臀| 欧美mv日韩mv亚洲| 国产91丝袜在线播放| 国产精品嫩草影院av蜜臀| av福利精品导航| 亚洲综合久久av| 56国语精品自产拍在线观看| 日韩精品三区四区| www日韩大片| 波多野结衣在线一区| 最新国产成人在线观看| 在线观看免费亚洲| 蜜桃免费网站一区二区三区| 精品国产91乱码一区二区三区| 大美女一区二区三区| 亚洲欧美日韩国产一区二区三区| 亚洲男人的天堂在线观看| 91视频com| 日韩中文字幕区一区有砖一区| 精品毛片乱码1区2区3区| 成人午夜免费av| 亚洲一区自拍偷拍| 欧美一区二区三区日韩| 国产高清在线精品| 亚洲影院免费观看| 精品国产精品网麻豆系列| 99久久久精品| 日韩二区三区四区| 国产精品午夜在线观看| 欧美日韩一区在线观看| 国内精品伊人久久久久av一坑| 最新国产精品久久精品| 欧美日韩国产另类不卡| 国产一区激情在线| 一区二区三区四区精品在线视频| 日韩欧美在线影院| 99视频超级精品| 日韩电影在线观看一区| 国产精品视频一二三| 欧美日韩成人综合天天影院| 国产精品69毛片高清亚洲| 亚洲一区av在线| 久久久www成人免费无遮挡大片| 91黄色免费观看| 国产一区二区精品久久| 一级做a爱片久久| 精品99一区二区三区| 色婷婷国产精品| 国内精品国产三级国产a久久| 亚洲男人天堂一区| 成熟亚洲日本毛茸茸凸凹| av成人老司机| 欧美日韩一区不卡| 一区二区三区四区视频精品免费| 日韩和欧美一区二区| 精品在线一区二区| 亚洲精品中文字幕在线观看| 欧美一区二区在线免费播放| av不卡一区二区三区| 国内精品第一页| 奇米综合一区二区三区精品视频| 日韩理论在线观看| 欧美精品一区二区久久久| 欧美日免费三级在线| 99精品久久99久久久久| 国产一区视频在线看| 日韩精品视频网| 亚洲国产精品久久人人爱蜜臀| 中文字幕在线不卡一区二区三区| 26uuu亚洲| 91麻豆精品国产91久久久久| 91亚洲精品一区二区乱码| 国产经典欧美精品| 国产一区欧美日韩| 麻豆传媒一区二区三区| 亚洲大片一区二区三区| 国产91高潮流白浆在线麻豆| 男女性色大片免费观看一区二区 | 91免费看片在线观看| 午夜视频一区二区三区| 欧美精品三级日韩久久| 国产精品色一区二区三区| 日韩美女主播在线视频一区二区三区 | 麻豆精品一区二区三区| 免费观看91视频大全| 天天操天天色综合|