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

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

?? _chapter 8.htm

?? linux、unix初學者的必讀書籍 詳細講述了shell編程方法與技巧
?? HTM
?? 第 1 頁 / 共 4 頁
字號:
variable, has been changed since you logged on, you can use the
<span class="docEmphasis">dot</span> command to re-execute the
<span class="docEmphasis">.profile</span> without logging out and then logging 
back in.</p>
<h5 id="ch08list07" class="docExampleTitle">Example 8.7 </h5>
<pre>$ <span class="docEmphStrong">. .profile</span>
</pre>

<table cellSpacing="0" width="90%" border="1" align="center">
  <tr>
    <td>
    <h2 class="docSidebarTitle">EXPLANATION</h2>
    <p class="docText">The <span class="docEmphasis">dot</span> command executes 
    the initialization file, <span class="docEmphasis">.profile,</span> within 
    this shell. Local and global variables are redefined within this shell. The
    <span class="docEmphasis">dot</span> command makes it unnecessary to log out 
    and then log back in again.<span id="ENB8-1"><a class="docLink" href="#EN8-1"><sup>[1]</sup></a></span></td>
  </tr>
</table>

<h4 class="docSection2Title" id="ch08lev2sec2">8.1.2 The Command Line</h4>
<p class="docText">After logging on, the shell displays its primary prompt, a 
dollar sign, by default. The shell is your command interpreter. When the shell 
is running interactively, it reads commands from the terminal and breaks the 
command line into words. A command line consists of one or more words (tokens), 
separated by whitespace (blanks and/or tabs), and terminated with a newline, 
which is generated by pressing Enter. The first word is the command and 
subsequent words are the command's arguments. The command may be a UNIX 
executable program such as <span class="docEmphasis">ls</span> or
<span class="docEmphasis">pwd,</span> a built-in command such as
<span class="docEmphasis">cd</span> or <span class="docEmphasis">test,</span> or 
a shell script. The command may contain special characters, called
<span class="docEmphasis">metacharacters,</span> that the shell must interpret 
while parsing the command line. If a command line is long and you want to 
continue typing on the next line, the backslash character, followed by a newline, 
will allow you to continue typing on the next line. The secondary prompt will 
appear until the command line is terminated.</p>
<p class="docText"><b>The Exit Status.</b> After a command or program 
terminates, it returns an exit status to the parent process. The exit status is 
a number between 0 and 255. By convention, when a program exits, if the status 
returned is zero, the command was successful in its execution. When the exit 
status is nonzero, the command failed in some way. The shell status variable,
<span class="docEmphasis">?,</span> is set to the value of the exit status of 
the last command that was executed. Success or failure of a program is 
determined by the programmer who wrote the program.</p>
<h5 id="ch08list08" class="docExampleTitle">Example 8.8 </h5>
<pre>1   $ grep &quot;john&quot; /etc/passwd
    <span class="docEmphasis">john:MgVyBsZJavd16s:9496:40:John Doe:/home/falcon/john:/bin/sh</span>
2   $ <span class="docEmphStrong">echo $?</span>
    <span class="docEmphasis">0</span>
3   $ grep &quot;nicky&quot; /etc/passwd
4   $ <span class="docEmphStrong">echo $?</span>
    <span class="docEmphasis">1</span>
5   $ grep &quot;scott&quot; /etc/passsswd
    <span class="docEmphasis">grep: /etc/passsswd: No such file or directory</span>
6   $ <span class="docEmphStrong">echo $?</span>
    <span class="docEmphasis">2</span>
</pre>

<table cellSpacing="0" width="90%" border="1" align="center">
  <tr>
    <td>
    <h2 class="docSidebarTitle">EXPLANATION</h2>
    <span style="FONT-WEIGHT: bold">
    <ol class="docList" type="1">
      <li><span style="FONT-WEIGHT: normal">
      <p class="docList">The <span class="docEmphasis">grep</span> program 
      searches for the pattern <span class="docEmphasis">john</span> in the
      <span class="docEmphasis">/etc/passwd</span> file and is successful. The 
      line from <span class="docEmphasis">/etc/passwd</span> is displayed.</span></li>
      <li><span style="FONT-WEIGHT: normal">
      <p class="docList">The <span class="docEmphasis">?</span> variable is set 
      to the exit value of the <span class="docEmphasis">grep</span> command. 
      Zero indicates success.</span></li>
      <li><span style="FONT-WEIGHT: normal">
      <p class="docList">The <span class="docEmphasis">grep</span> program 
      cannot find user <span class="docEmphasis">nicky</span> in the
      <span class="docEmphasis">/etc/passwd</span> file.</span></li>
      <li><span style="FONT-WEIGHT: normal">
      <p class="docList">If the <span class="docEmphasis">grep</span> program 
      cannot find the pattern, it returns an exit status of
      <span class="docEmphasis">1.</span></span></li>
      <li><span style="FONT-WEIGHT: normal">
      <p class="docList">The <span class="docEmphasis">grep</span> fails because 
      the <span class="docEmphasis">/etc/passsswd</span> file cannot be opened.</span></li>
      <li><span style="FONT-WEIGHT: normal">
      <p class="docList">If <span class="docEmphasis">grep</span> cannot find 
      the file, it returns an exit status of <span class="docEmphasis">2.</span></span></li>
    </ol>
    </span></td>
  </tr>
</table>

<p class="docText"><b>Multiple Commands at the Command Line.</b> A command line 
can consist of multiple commands. Each command is separated by a semicolon, and 
the command line is terminated with a newline.</p>
<h5 id="ch08list09" class="docExampleTitle">Example 8.9 </h5>
<pre>$ <span class="docEmphStrong">ls; pwd; date</span>
</pre>

<table cellSpacing="0" width="90%" border="1" align="center">
  <tr>
    <td>
    <h2 class="docSidebarTitle">EXPLANATION</h2>
    <p class="docText">The commands are executed from left to right, one after 
    the other, until the newline is reached.</td>
  </tr>
</table>

<p class="docText"><b>Grouping Commands.</b> Commands may also be grouped so 
that all of the output is either piped to another command or redirected to a 
file.</p>
<h5 id="ch08list10" class="docExampleTitle">Example 8.10 </h5>
<pre>$ <span class="docEmphStrong">( ls ; pwd; date ) &gt; outputfile</span>
</pre>

<table cellSpacing="0" width="90%" border="1" align="center">
  <tr>
    <td>
    <h2 class="docSidebarTitle">EXPLANATION</h2>
    <p class="docText">The output of each of the commands is sent to the file 
    called <span class="docEmphasis">outputfile.</span> The spaces inside the 
    parentheses are necessary.</td>
  </tr>
</table>

<p class="docText"><b>Conditional Execution of Commands.</b> With conditional 
execution, two command strings are separated by the special metacharacters, 
double ampersands (<span class="docEmphasis">&amp;&amp;</span>) and double vertical bars 
(||). The command on the right of either of these metacharacters will or will 
not be executed based on the exit condition of the command on the left.</p>
<h5 id="ch08list11" class="docExampleTitle">Example 8.11 </h5>
<pre>$ <span class="docEmphStrong">cc prgm1.c 杘 prgm1 &amp;&amp; prgm1</span>
</pre>

<table cellSpacing="0" width="90%" border="1" align="center">
  <tr>
    <td>
    <h2 class="docSidebarTitle">EXPLANATION</h2>
    <p class="docText">If the first command is successful (has a zero exit 
    status), the command after the <span class="docEmphasis">&amp;&amp;</span> is 
    executed; i.e., if the <span class="docEmphasis">cc</span> program can 
    successfully compile <span class="docEmphasis">prgm1.c,</span> the resulting 
    executable program, <span class="docEmphasis">prgm1,</span> will be 
    executed.</td>
  </tr>
</table>

<h5 id="ch08list12" class="docExampleTitle">Example 8.12 </h5>
<pre>$ <span class="docEmphStrong">cc prog.c &gt;&amp; err || mail bob &lt; err</span>
</pre>

<table cellSpacing="0" width="90%" border="1" align="center">
  <tr>
    <td>
    <h2 class="docSidebarTitle">EXPLANATION</h2>
    <p class="docText">If the first command fails (has a nonzero exit status), 
    the command after the <span class="docEmphasis">||</span> is executed; i.e., 
    if the <span class="docEmphasis">cc</span> program cannot compile
    <span class="docEmphasis">prog.c,</span> the errors are sent to a file 
    called <span class="docEmphasis">err,</span> and user
    <span class="docEmphasis">bob</span> will be mailed the
    <span class="docEmphasis">err</span> file.</td>
  </tr>
</table>

<p class="docText"><b>Commands in the Background.</b> Normally, when you execute 
a command, it runs in the foreground, and the prompt does not reappear until the 
command has completed execution. It is not always convenient to wait for the 
command to complete. By placing an ampersand (<span class="docEmphasis">&amp;</span>) 
at the end of the command line, the shell will return the shell prompt 
immediately and execute the command in the background concurrently. You do not 
have to wait to start up another command. The output from a background job will 
be sent to the screen as it processes. Therefore, if you intend to run a command 
in the background, the output of that command might be redirected to a file or 
piped to another device, such as a printer, so that the output does not 
interfere with what you are doing.</p>
<p class="docText">The <span class="docEmphasis">$!</span> variable contains the 
PID number of the last job put in the background.</p>
<h5 id="ch08list13" class="docExampleTitle">Example 8.13 </h5>
<pre>1   $ <span class="docEmphStrong">man sh | lp&amp;</span>
2   <span class="docEmphasis">[1] 1557</span>
3   $ <span class="docEmphStrong">kill -9 $!</span>
</pre>

<table cellSpacing="0" width="90%" border="1" align="center">
  <tr>
    <td>
    <h2 class="docSidebarTitle">EXPLANATION</h2>
    <span style="FONT-WEIGHT: bold">
    <ol class="docList" type="1">
      <li><span style="FONT-WEIGHT: normal">
      <p class="docList">The output of the <span class="docEmphasis">man</span> 
      command (the manual pages for the <span class="docEmphasis">sh</span> 
      command) is piped to the printer. The ampersand at the end of the command 
      line puts the job in the background.</span></li>
      <li><span style="FONT-WEIGHT: normal">
      <p class="docList">There are two numbers that appear on the screen: the 
      number in square brackets indicates that this is the first job to be 
      placed in the background; the second number is the PID, or the process 
      identification number of this job.</span></li>
      <li><span style="FONT-WEIGHT: normal">
      <p class="docList">The shell prompt appears immediately. While your 
      program is running in the background, the shell is waiting for another 
      command in the foreground.</span></li>
      <li><span style="FONT-WEIGHT: normal">
      <p class="docList">The <span class="docEmphasis">!</span> variable 
      evaluates to the PID of the job most recently put in the background. If 
      you get it in time, you will kill this job before it goes to the print 
      queue.</span></li>
    </ol>
    </span></td>
  </tr>
</table>

<h4 class="docSection2Title" id="ch08lev2sec3">8.1.3 Metacharacters (Wildcards)</h4>
<p class="docText">Metacharacters are special characters used to represent 
something other than themselves. Shell metacharacters are called
<span class="docEmphasis">wildcards.</span>
<a class="docLink" href="#ch08table01">Table 8.1</a> lists metacharacters and 
what they do.</p>

<table cellSpacing="0" cellPadding="1" width="100%" border="1">
  <caption>
  <h5 id="ch08table01" class="docTableTitle">Table 8.1. Shell Metacharacters</h5>
  </caption>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
67194成人在线观看| 制服.丝袜.亚洲.另类.中文| 夜夜精品视频一区二区| 欧美大片免费久久精品三p| 99re免费视频精品全部| 久草中文综合在线| 亚洲国产日韩一级| 国产精品传媒在线| 久久精品这里都是精品| 欧美一二三四区在线| 欧美在线不卡一区| 国产成人午夜电影网| 久久99日本精品| 亚洲国产一区二区视频| 亚洲色大成网站www久久九九| 2022国产精品视频| 91精品国产91综合久久蜜臀| 91国偷自产一区二区三区成为亚洲经典 | 成人av午夜电影| 久久成人免费电影| 视频一区在线视频| 亚洲国产一区在线观看| 一区二区三区欧美久久| 中文字幕av不卡| 国产精品青草久久| 亚洲国产成人午夜在线一区| 久久久综合视频| 久久久久久久免费视频了| 欧美白人最猛性xxxxx69交| 日韩免费观看高清完整版| 7777精品伊人久久久大香线蕉超级流畅| 色综合久久久久网| 色婷婷av一区二区三区之一色屋| 不卡的av电影| 91丨国产丨九色丨pron| 99久久精品国产毛片| 成人97人人超碰人人99| 成人av影视在线观看| av在线一区二区| 色综合天天综合网国产成人综合天| 99免费精品视频| 色综合久久久久久久久| 色综合天天综合狠狠| 在线亚洲欧美专区二区| 在线亚洲免费视频| 欧美喷潮久久久xxxxx| 欧美日韩日日摸| 91精品国产黑色紧身裤美女| 欧美大片免费久久精品三p| 久久久久久一二三区| 国产精品热久久久久夜色精品三区 | 精品一区二区三区免费播放| 激情综合色综合久久| 国产盗摄一区二区| youjizz久久| 欧美网站大全在线观看| 91精品国产aⅴ一区二区| 欧美精品一区视频| 国产女人aaa级久久久级| 综合自拍亚洲综合图不卡区| 亚洲一卡二卡三卡四卡 | 看国产成人h片视频| 国产一区视频导航| av电影在线观看不卡| 欧美系列亚洲系列| 欧美mv日韩mv国产网站app| 国产欧美精品在线观看| 亚洲欧美日韩精品久久久久| 丝袜亚洲另类欧美综合| 九一久久久久久| 91同城在线观看| 欧美精品久久99久久在免费线| 精品粉嫩超白一线天av| 国产精品久久毛片a| 亚洲午夜免费视频| 男女视频一区二区| 成人午夜视频福利| 欧美丰满一区二区免费视频| 中文字幕精品在线不卡| 亚洲风情在线资源站| 国产一区二区剧情av在线| 色婷婷精品久久二区二区蜜臀av| 日韩欧美亚洲另类制服综合在线| 国产精品色呦呦| 视频一区欧美日韩| 成人免费精品视频| 欧美一区二区三区在线看| 国产精品国产成人国产三级| 美女视频黄a大片欧美| 99国产欧美另类久久久精品| 日韩免费电影一区| 亚洲激情欧美激情| 国产电影精品久久禁18| 91精品综合久久久久久| 国产精品免费观看视频| 久久丁香综合五月国产三级网站| 色婷婷av一区二区三区软件 | 欧美一卡二卡在线观看| 亚洲欧洲精品一区二区三区不卡| 蜜桃视频第一区免费观看| 91麻豆蜜桃一区二区三区| 日韩精品一区二区三区蜜臀| 亚洲高清在线视频| av不卡在线观看| 久久久久久99久久久精品网站| 日韩av中文字幕一区二区三区| 色天天综合久久久久综合片| 国产日韩欧美综合一区| 蜜臀a∨国产成人精品| 欧美三级日韩三级| 亚洲黄色av一区| 不卡区在线中文字幕| 精品免费视频一区二区| 日韩av中文字幕一区二区三区| 在线观看欧美黄色| 综合久久久久综合| 丰满少妇久久久久久久| 久久精品欧美日韩精品| 国产美女一区二区| 欧美成人高清电影在线| 日韩va欧美va亚洲va久久| 欧美群妇大交群中文字幕| 亚洲自拍偷拍九九九| 色久综合一二码| 亚洲女人小视频在线观看| 97精品视频在线观看自产线路二| 中文字幕免费在线观看视频一区| 国产精品一区二区无线| 欧美va亚洲va香蕉在线| 精品一区二区三区的国产在线播放| 欧美一区二区三区免费大片 | 国产精品资源站在线| 久久久久久久国产精品影院| 国产精品66部| 国产午夜精品一区二区三区视频| 国产精品一区二区不卡| 国产亚洲一区二区三区| 国产成人精品亚洲午夜麻豆| 国产女同性恋一区二区| 成人国产精品免费观看动漫| 国产精品乱人伦一区二区| 成人国产一区二区三区精品| 国产精品久久久久9999吃药| 91丨porny丨国产| 一区二区不卡在线视频 午夜欧美不卡在| 色综合久久88色综合天天| 亚洲乱码中文字幕| 欧美日韩亚洲综合一区二区三区| 天堂va蜜桃一区二区三区漫画版 | 日韩一区日韩二区| 色94色欧美sute亚洲线路一久| 亚洲一区在线观看视频| 91麻豆精品国产91久久久久久久久| 老司机午夜精品99久久| 国产三级欧美三级日产三级99 | 亚洲人成网站精品片在线观看 | 国产精品蜜臀av| 91网站在线播放| 三级不卡在线观看| 精品国产网站在线观看| 成人性生交大片免费看视频在线| 亚洲一区二区黄色| 精品免费日韩av| 97aⅴ精品视频一二三区| 亚洲国产日韩a在线播放| 日韩欧美国产一二三区| 成人av第一页| 亚洲成人av一区| 26uuu精品一区二区| aaa国产一区| 蜜臀va亚洲va欧美va天堂| 国产精品视频yy9299一区| 欧美精品第1页| 成人一区在线观看| 亚洲成人av中文| 中文字幕不卡三区| 欧美日韩国产乱码电影| 国产精品一区在线观看乱码 | 蜜桃视频在线观看一区二区| 中文字幕不卡的av| 欧美精品乱码久久久久久按摩| 成人深夜在线观看| 首页国产欧美久久| 国产精品免费视频网站| 欧美精选午夜久久久乱码6080| 国产成人精品免费| 亚洲1区2区3区4区| 国产精品福利一区二区三区| 91精品国产aⅴ一区二区| 91首页免费视频| 国产激情视频一区二区三区欧美| 亚洲一区二区三区不卡国产欧美| 久久久99久久| 91精品国产综合久久福利| 99国产精品久久久久久久久久久| 日韩vs国产vs欧美| 亚洲综合一区在线| 欧美韩日一区二区三区四区| 日韩视频一区在线观看| 欧美主播一区二区三区|