yes command
觀看 help
執行
$ yes --help
顯示
Usage: yes [STRING]...
or: yes OPTION
Repeatedly output a line with all specified STRING(s), or 'y'.
--help display this help and exit
--version output version information and exit
GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
Full documentation at: <http://www.gnu.org/software/coreutils/yes>
or available locally via: info '(coreutils) yes invocation'
觀看版本
執行
$ yes --version
顯示
yes (GNU coreutils) 8.25
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by David MacKenzie.
觀看 manpage
執行
$ whatis yes
顯示
yes (1) - output a string repeatedly until killed
執行
$ man yes
會看到「說明」。
查詢 yes 放在那個位置
執行
$ whereis yes
顯示
yes: /usr/bin/yes /usr/share/man/man1/yes.1.gz
查詢 yes 屬於那個套件
執行
$ dpkg -S /usr/bin/yes
顯示
coreutils: /usr/bin/yes
表示「/usr/bin/yes」是屬於「yes」這個套件。
使用範例
執行
$ yes
顯示
y
y
y
y
y
...持續重複...
執行
$ yes hello
顯示
hello
hello
hello
hello
hello
...持續重複...