Linux command
hello 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Print hello world
hello
Traditional greeting
hello -t
Specify greeting
hello -g "Custom greeting"
Show version
hello --version
说明
GNU Hello is a friendly greeting program. It serves as an example of GNU coding standards and a template for new GNU packages. The program demonstrates proper use of gettext, autoconf, and other GNU infrastructure. It's useful for testing and learning.
参数
- -g, --greeting _TEXT_
- Custom greeting text.
- -t, --traditional
- Use traditional greeting.
- -n, --next-generation
- Next generation greeting.
- --help
- Display help information.
- --version
- Show version.
FAQ
What is the hello command used for?
GNU Hello is a friendly greeting program. It serves as an example of GNU coding standards and a template for new GNU packages. The program demonstrates proper use of gettext, autoconf, and other GNU infrastructure. It's useful for testing and learning.
How do I run a basic hello example?
Run `hello` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -g, --greeting _TEXT_ do in hello?
Custom greeting text.