關於 PHP, Linux, Open Source 及個人生活記載的網誌。
RSS icon
  • Linux 系統的管線 (pipe)

    Posted on February 8th, 2006 Sam Tang 2 comments

    Linux 系統的管線 (pipe) 概念十分實用及重要。所謂管線就是使用 “|” 符號,將第一個指令的輸出引導到第二個指令當作輸入,例如:

    ls /etc/ | grep ftp

    以上指令分為兩部份,”ls /etc” 是列出 /etc 目錄下的檔案及目錄,而 “grep ftp” 則是搜索包括有 ftp 的內容。所以以上指令的執行結果就會是列出 /etc 裡面包括有 ftp 的檔案或目錄。


     

    2 responses to “Linux 系統的管線 (pipe)”

    1. 您好.請問(1)管線“|”在鍵盤的哪一個位置.
      (2)我沒有中文輸入.要怎麼灌.哪裡可以找得到軟體.
      謝謝您

    2. 1.|跟\在同一顆按鍵上,這顆按鍵的右下角寫著「鎮」
      2.中文輸入法可以安裝善心人士做的輸入法套件,例如gcin。

    Leave a reply

    *
    To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
    Click to hear an audio file of the anti-spam word