中文
注册
我要评分
文档获取效率
文档正确性
内容完整性
文档易理解
在线提单
论坛求助

运行和验证

操作步骤

  1. 使用PuTTY工具,以root用户登录服务器。
  2. 执行以下命令验证Linenoise-NG。
    cd /path/to/linenoise-ng-1.0.1/build
    ./example

    输入“hello,world!”,按“Enter”键,再输入“this is linux”,按“Enter”键,然后按“Ctrl+C”退出。

    cat history

    回显信息结果如下所示。

    # ./example
    starting...
    linenoise> hello,world!
    thanks for the input.
    linenoise> this is linux
    thanks for the input.
    linenoise> ^C
    # cat history
    hello,world!
    this is linux