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

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

?? _chapter 8.htm

?? linux、unix初學者的必讀書籍 詳細講述了shell編程方法與技巧
?? HTM
?? 第 1 頁 / 共 4 頁
字號:
      <p class="docList">The <span class="docEmphasis">stty</span> command sets 
      terminal options. The erase key is set to <span class="docEmphasis">^h,</span> 
      so that when you press the Backspace key, the letter typed preceding the 
      cursor is erased.</span></li>
      <li><span style="FONT-WEIGHT: normal">
      <p class="docList">A function called <span class="docEmphasis">go</span> 
      is defined. The purpose of this function is to take one argument, a 
      directory name, <span class="docEmphasis">cd</span> to that directory, and 
      set the primary prompt to the present working directory. The
      <span class="docEmphasis">basename</span> command removes all but the last 
      entry of the path. The prompt will show you the current directory.</span></li>
      <li><span style="FONT-WEIGHT: normal">
      <p class="docList">The <span class="docEmphasis">trap</span> command is a 
      signal handling command. When you exit the shell, that is, log out, the
      <span class="docEmphasis">.logout</span> file will be executed.</span></li>
      <li><span style="FONT-WEIGHT: normal">
      <p class="docList">The <span class="docEmphasis">clear</span> command 
      clears the screen.</span></li>
    </ol>
    </span></td>
  </tr>
</table>
<p class="docText"><b>The Prompts.</b> When used interactively, the shell 
prompts you for input. When you see the prompt, you know that you can start 
typing commands. The Bourne shell provides two prompts: the primary prompt, a 
dollar sign (<span class="docEmphasis">$</span>), and the secondary prompt, a 
right angle bracket symbol (<span class="docEmphasis">&gt;</span>). The prompts are 
displayed when the shell is running interactively. You can change these prompts. 
The variable <span class="docEmphasis">PS1</span> is the primary prompt set 
initially to a dollar sign (<span class="docEmphasis">$</span>). The primary 
prompt appears when you log on and the shell waits for you to type commands. The 
variable <span class="docEmphasis">PS2</span> is the secondary prompt, initially 
set to the right angle bracket character. It appears if you have partially typed 
a command and then pressed the carriage return. You can change the primary and 
secondary prompts.</p>
<p class="docText"><b>The Primary Prompt.</b> The dollar sign is the default 
primary prompt. You can change your prompt. Normally prompts are defined in
<span class="docEmphasis">.profile,</span> the user initialization file.</p>
<h5 id="ch08list03" class="docExampleTitle">Example 8.3 </h5>
<pre>1   <span class="docEmphStrong">$ PS1=&quot;'uname -n &gt; '&quot;</span>
2   <span class="docEmphasis">chargers &gt;</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 default primary prompt is a dollar sign (<span class="docEmphasis">$</span>). 
      The <span class="docEmphasis">PS1</span> prompt is being reset to the name 
      of the machine (<span class="docEmphasis">uname 杗</span>) and a
      <span class="docEmphasis">&gt;</span> symbol. (Don't confuse backquotes and 
      single quotes.)</span></li>
      <li><span style="FONT-WEIGHT: normal">
      <p class="docList">The new prompt is displayed.</span></li>
    </ol>
    </span></td>
  </tr>
</table>
<p class="docText"><b>The Secondary Prompt.</b> The <span class="docEmphasis">
PS2</span> prompt is the secondary prompt. Its value is displayed to standard 
error, which is the screen by default. This prompt appears when you have not 
completed a command and have pressed the carriage return.</p>
<h5 id="ch08list04" class="docExampleTitle">Example 8.4 </h5>
<pre>1   $ echo &quot;Hello
2   <span class="docEmphStrong">&gt;</span> there&quot;
3   <span class="docEmphasis">Hello</span>
    <span class="docEmphasis">there</span>
4   $

5   <span class="docEmphStrong">$ PS2=&quot;枛枛&gt; &quot;</span>
6   <span class="docEmphStrong">$</span> echo 'Hi
7   <span class="docEmphStrong">枛枛枛&gt;</span>
    <span class="docEmphStrong">枛枛枛&gt;</span>
    <span class="docEmphStrong">枛枛枛&gt;</span> there'
    <span class="docEmphasis">Hi</span>


    <span class="docEmphasis">there</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 double quotes must be matched after the string &quot;<span class="docEmphasis">Hello.</span></span></li>
      <li><span style="FONT-WEIGHT: normal">
      <p class="docList">When a newline is entered, the secondary prompt 
      appears. Until the closing double quotes are entered, the secondary prompt 
      will be displayed.</span></li>
      <li><span style="FONT-WEIGHT: normal">
      <p class="docList">The output of the <span class="docEmphasis">echo</span> 
      command is displayed.</span></li>
      <li><span style="FONT-WEIGHT: normal">
      <p class="docList">The primary prompt is displayed.</span></li>
      <li><span style="FONT-WEIGHT: normal">
      <p class="docList">The secondary prompt is reset.</span></li>
      <li><span style="FONT-WEIGHT: normal">
      <p class="docList">The single quote must be matched after the string
      <span class="docEmphasis">'Hi.</span></span></li>
      <li><span style="FONT-WEIGHT: normal">
      <p class="docList">When a newline is entered, the new secondary prompt 
      appears. Until the closing single quote is entered, the secondary prompt 
      will be displayed.</span></li>
    </ol>
    </span></td>
  </tr>
</table>
<p class="docText"><b>The Search Path.</b> The <span class="docEmphasis">path</span> 
variable is used by the Bourne shell to locate commands typed at the command 
line. The path is a colon-separated list of directories used by the shell when 
searching for commands. The search is from left to right. The dot at the end of 
the path represents the current working directory. If the command is not found 
in any of the directories listed in the path, the Bourne shell sends to standard 
error the message <span class="docEmphasis">filename: not found.</span> It is 
recommended that the path be set in the <span class="docEmphasis">.profile</span> 
file.</p>
<p class="docText">If the dot is not included in the path and you are executing 
a command or script from the current working directory, the name of the script 
must be preceded with a <span class="docEmphasis">./,</span> such as
<span class="docEmphasis">./program_name,</span> so that shell can find the 
program.</p>
<h5 id="ch08list05" class="docExampleTitle">Example 8.5 </h5>
<pre>(Printing the PATH)
1   $ <span class="docEmphStrong">echo $PATH</span>
<span class="docEmphasis">/home/gsa12/bin:/usr/ucb:/usr/bin:/usr/local/bin:/usr/bin:/usr/local/bin:.</span>

(Setting the PATH)
2   $ <span class="docEmphStrong">PATH=$HOME:/usr/ucb:/usr:/usr/bin:/usr/local/bin:.</span>
3   $ <span class="docEmphStrong">export PATH</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">By echoing <span class="docEmphasis">$PATH,</span> the 
      value of the <span class="docEmphasis">PATH</span> variable is displayed. 
      The path consists of a list of colon-separated elements and is searched 
      from left to right. The dot at the end of the path represents the user's 
      current working directory.</span></li>
      <li><span style="FONT-WEIGHT: normal">
      <p class="docList">To set the path, a list of colon-separated directories 
      are assigned to the <span class="docEmphasis">PATH</span> variable.</span></li>
      <li><span style="FONT-WEIGHT: normal">
      <p class="docList">By exporting the path, child processes will have access 
      to it.</span></li>
    </ol>
    </span></td>
  </tr>
</table>

<p class="docText"><span class="docEmphStrong">The <span class="docEmphasis">
hash</span> Command.</span> The <span class="docEmphasis">hash</span> command 
controls the internal hash table used by the shell to improve efficiency in 
searching for commands. Instead of searching the path each time a command is 
entered, the first time you type a command, the shell uses the search path to 
find the command, and then stores it in a table in the shell's memory. The next 
time you use the same command, the shell uses the hash table to find it. This 
makes it much faster to access a command than having to search the complete 
path. If you know that you will be using a command often, you can add the 
command to the hash table. You can also remove commands from the table. The 
output of the <span class="docEmphasis">hash</span> command displays both the 
number of times the shell has used the table to find a command (<span class="docEmphasis">hits</span>) 
and the relative cost (<span class="docEmphasis">cost</span>) of looking up the 
command, that is, how far down the search path it had to go before it found the 
command. The <span class="docEmphasis">hash</span> command with the
<span class="docEmphasis">杛</span> option clears the hash table.</p>
<h5 id="ch08list06" class="docExampleTitle">Example 8.6 </h5>
<pre>1   $ <span class="docEmphStrong">hash</span>
    <span class="docEmphasis">hits  cost   command</span>
    <span class="docEmphasis">3     8      /usr/bin/date</span>
    <span class="docEmphasis">1     8      /usr/bin/who</span>
    <span class="docEmphasis">1     8      /usr/bin/ls</span>
2   $ <span class="docEmphStrong">hash vi</span>
    <span class="docEmphasis">3     8      /usr/bin/date</span>
    <span class="docEmphasis">1     8      /usr/bin/who</span>
    <span class="docEmphasis">1     8      /usr/bin/ls</span>
    <span class="docEmphasis">0     6      /usr/ucb/vi</span>
3   $ <span class="docEmphStrong">hash 杛</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">hash</span> command 
      displays the commands currently stored in the internal hash table. The 
      shell will not have to search the search path to find the commands listed 
      when they are entered at the command line. This saves time. Otherwise, the 
      shell has to go out to the disk to search the path. When you type a new 
      command, the shell will search the path first, and then place it on the 
      hash table. The next time you use that command, the shell finds it in 
      memory.</span></li>
      <li><span style="FONT-WEIGHT: normal">
      <p class="docList">The <span class="docEmphasis">hash</span> command can 
      take arguments; the names of commands you want to guarantee get stored on 
      the hash table ahead of time.</span></li>
      <li><span style="FONT-WEIGHT: normal">
      <p class="docList">The <span class="docEmphasis">hash</span> command with 
      the <span class="docEmphasis">杛</span> option clears the hash table.</span></li>
    </ol>
    </span></td>
  </tr>
</table>

<p class="docText"><span class="docEmphStrong">The <span class="docEmphasis">dot</span> 
Command.</span> The <span class="docEmphasis">dot</span> command is a built-in 
Bourne shell command. It takes a script name as an argument.The script will be 
executed in the environment of the current shell; that is, a child process will 
not be started. All variables set in the script will become part of the current 
shell's environment. Likewise, all variables set in the current shell will 
become part of the script's environment. The <span class="docEmphasis">dot</span> 
command is normally used to re-execute the <span class="docEmphasis">.profile</span> 
file if it has been modified. For example, if one of the settings, such as the
<span class="docEmphasis">EDITOR</span> or <span class="docEmphasis">TERM</span> 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品不卡在线视频| 毛片不卡一区二区| 久久精品国产精品青草| hitomi一区二区三区精品| 日韩一区二区在线看| 国产精品久久久久久久久快鸭| 奇米色一区二区| 欧洲精品一区二区三区在线观看| 国产欧美日韩麻豆91| 日本不卡视频在线观看| 色婷婷综合久久久中文一区二区| 精品少妇一区二区三区在线视频| 一片黄亚洲嫩模| 丁香桃色午夜亚洲一区二区三区| 欧美一区二区福利在线| 一区二区三区高清在线| 99国产精品久久久久久久久久 | 欧美日韩国产小视频在线观看| 国产婷婷色一区二区三区 | 亚洲综合男人的天堂| 国产精品性做久久久久久| 日韩一区二区三区视频在线| 亚洲自拍偷拍欧美| 一本色道久久加勒比精品| 国产女人18毛片水真多成人如厕 | 精品国产99国产精品| 日本在线不卡一区| 欧美日韩亚洲国产综合| 一区二区三区中文在线| 色婷婷久久久综合中文字幕| 国产精品私房写真福利视频| 高潮精品一区videoshd| 久久久精品国产免大香伊| 激情都市一区二区| 久久人人爽人人爽| 国产成人综合亚洲网站| 国产亚洲视频系列| 99久久免费视频.com| √…a在线天堂一区| 91国模大尺度私拍在线视频| 亚洲在线视频一区| 在线播放视频一区| 国产一区二区影院| 国产精品沙发午睡系列990531| 成人一区二区三区视频在线观看| 国产精品剧情在线亚洲| 色欧美88888久久久久久影院| 亚洲午夜精品网| 91精品国产高清一区二区三区 | 在线观看免费一区| 天天综合色天天综合色h| 6080国产精品一区二区| 日本伊人精品一区二区三区观看方式 | 日韩理论电影院| 欧美日韩一区二区三区在线看| 日韩国产精品久久久久久亚洲| 精品成人私密视频| 色综合激情久久| 水蜜桃久久夜色精品一区的特点 | 国产精品久久夜| 欧美色偷偷大香| 国产九九视频一区二区三区| 亚洲色图在线播放| 在线综合视频播放| 大胆亚洲人体视频| 日韩av高清在线观看| 国产精品丝袜在线| 欧美丰满嫩嫩电影| 99v久久综合狠狠综合久久| 午夜精品久久久久久久久| 国产日韩欧美精品综合| 欧美日韩一级黄| 国产成人精品免费视频网站| 亚洲成人动漫在线免费观看| 亚洲国产成人私人影院tom| 欧美精品1区2区3区| 粗大黑人巨茎大战欧美成人| 午夜av一区二区| 1024精品合集| 亚洲精品在线电影| 欧美麻豆精品久久久久久| 不卡av在线网| 老司机免费视频一区二区三区| 亚洲精品国产a| 国产视频不卡一区| 欧美一区二区三区白人| 色哟哟一区二区在线观看| 国产成人精品午夜视频免费| 日韩电影免费在线看| 亚洲精品国产成人久久av盗摄| 久久久久久久av麻豆果冻| 91精品国产一区二区三区| 欧洲精品一区二区| 99久久精品免费看| 丁香激情综合国产| 国产精品99久久久久| 激情文学综合网| 精品一区二区三区在线观看国产 | 国产精品高潮久久久久无| 亚洲精品一区二区三区在线观看| 欧美日本一区二区三区四区| 91香蕉国产在线观看软件| 本田岬高潮一区二区三区| 国产精品一品二品| 国产麻豆精品一区二区| 免费日韩伦理电影| 免费在线欧美视频| 青青草国产精品97视觉盛宴| 天天综合色天天| 亚洲成精国产精品女| 性久久久久久久| 亚洲电影一区二区| 亚洲成人av电影在线| 视频一区二区三区在线| 午夜精品成人在线| 日本特黄久久久高潮| 日韩av在线免费观看不卡| 蜜桃视频在线观看一区| 另类的小说在线视频另类成人小视频在线| 日韩国产高清在线| 美女一区二区视频| 日本免费在线视频不卡一不卡二| 图片区小说区区亚洲影院| 奇米777欧美一区二区| 精品午夜一区二区三区在线观看| 国产九色sp调教91| av成人免费在线| 欧美体内she精视频| 这里只有精品电影| 337p日本欧洲亚洲大胆色噜噜| 久久美女艺术照精彩视频福利播放| 26uuu精品一区二区三区四区在线| 久久久三级国产网站| 国产精品美日韩| 亚洲线精品一区二区三区| 蜜桃传媒麻豆第一区在线观看| 国产一区二区视频在线| 91在线视频在线| 欧美高清dvd| 久久久国产午夜精品| 一区二区三区免费网站| 免费在线观看日韩欧美| 成人性生交大合| 在线观看不卡一区| 精品国产自在久精品国产| 国产精品久久久久永久免费观看| 亚洲午夜在线视频| 国产激情一区二区三区桃花岛亚洲| 91一区在线观看| 日韩亚洲欧美一区| 国产精品三级久久久久三级| 亚洲444eee在线观看| 从欧美一区二区三区| 欧美日本一道本在线视频| 久久久久久久久久久黄色| 一区二区三区不卡视频在线观看| 日韩1区2区日韩1区2区| 色综合视频在线观看| 精品久久久久久久久久久久久久久久久| 亚洲欧洲另类国产综合| 蜜桃免费网站一区二区三区| 91天堂素人约啪| 精品久久一二三区| 亚洲一区在线看| 成人免费看片app下载| 91精品在线观看入口| 亚洲日本青草视频在线怡红院| 欧美aaaaaa午夜精品| 色av成人天堂桃色av| 日本一二三四高清不卡| 午夜国产精品一区| 不卡av免费在线观看| 337p粉嫩大胆噜噜噜噜噜91av| 午夜影院在线观看欧美| 91麻豆免费看片| 久久久久国色av免费看影院| 视频精品一区二区| 在线看日本不卡| 国产精品久久久久精k8| 国产乱人伦偷精品视频免下载| 欧美日韩国产系列| 亚洲五月六月丁香激情| 色欧美片视频在线观看在线视频| 欧美国产精品久久| 国产91在线观看丝袜| 久久精品一区二区三区四区| 另类的小说在线视频另类成人小视频在线| 欧美视频一二三区| 亚洲黄色尤物视频| 在线一区二区三区| 一区二区高清免费观看影视大全| 成人激情视频网站| 欧美极品xxx| 成人激情免费视频| 国产欧美一区二区在线| 国产在线一区二区综合免费视频| 日韩精品资源二区在线| 精品无码三级在线观看视频| 欧美成人官网二区| 国模一区二区三区白浆|