歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux技術 >> Linux中“yes”命令怎麼使用?

Linux中“yes”命令怎麼使用?

日期:2017/3/2 11:34:09   编辑:Linux技術

  Linux命令“yes”不是表示肯定的意思,而是可以用來輸出字符。本文就來介紹一下Linux中yes命令怎麼使用,希望能讓大家對Linux yes命令有更多的了解。

Linux中“yes”命令怎麼使用?

  1.命令說明

  輸出回應的字符串。yes回應“y”字符,後者指定字符。

  2.路徑

  /usr/bin/yes

  3.語法

  yes [--help] [--version] string

  4.參數

  --help 顯示幫助字符。 --version 顯示版本信息

  5.相關命令

  無

  6.舉例說明

  [root@bixuan/]#yes “OK” //回應“OK”字符串。

  命令執行結果如下:

  OK

  OK

  OK

  。。。

  Ctrl+c //按Ctrl+c鍵中斷

  返回

  This file is decompiled by an unregistered version of ChmDecompiler.

  Regsitered version does not show this message.

  You can download ChmDecompiler at : http://www.sheup.com/

  以上就是Linux中yes命令怎麼使用的全部內容了,文中還可大家舉了一個yes命令使用的例子,相信能讓大家看得更明白。

Copyright © Linux教程網 All Rights Reserved