How to use the "yes" command in Linux?

  

The Linux command <yes” does not mean affirmative, but can be used to output characters. This article will introduce how to use the yes command in Linux, I hope that you can have more understanding of the Linux yes command.

1. Command Description

in response to the output string. Yes responds to the “y” character, which specifies the character.

2.Path

/usr/bin/yes

3. Syntax

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

4.Parameters

--help Displays help characters. --version Display version information

5.Related commands

None

6.Example description

[root@bixuan/]#yes “OK&rdquo ; //Respond to “OK” string.

The command execution results are as follows:

OK

OK

OK

. . .

Ctrl+c //Press Ctrl+c to interrupt

Return

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/

The above is all about how to use the yes command in Linux. Give an example of the use of the yes command, I believe that you can see more clearly.

Copyright © Windows knowledge All Rights Reserved