---
title: 运行和验证
description: "1. 使用PuTTY工具，以root用户登录服务器。"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/prtg-osc/kunpenglinenoise_ng_02_0007.html
sourcePath: /source/zh/kunpenghpcs/hpcindapp/prtg-osc/kunpenglinenoise_ng_02_0007.html
indexId: 24ceef34235165fbe2562856c22fc890e935c93918eff30b6179b4a086a1100974
---
# 运行和验证

#### 操作步骤

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
```
