← 返回命令列表

Linux command

nms 命令

文本

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Decrypt piped text (press any key to reveal)

echo "[text]" | nms

Auto-decrypt without waiting for a keypress

echo "[text]" | nms -a

Set the foreground colour of revealed text

echo "[text]" | nms -f green

Clear the screen before and restore it after

ls -l | nms -c

Mask blank spaces as well as visible characters

echo "[text]" | nms -s

Decrypt the output of a command

curl -s wttr.in | nms -a -f cyan

说明

nms ("No More Secrets") reads text from standard input, displays it as random noise, and then animates a character-by-character decryption to the original content, recreating the famous data-decryption sequence from the 1992 film *Sneakers*. Because it reads stdin, nms composes naturally with pipes, letting you drop the effect on top of the output of any command. A companion program, sneakers, is also shipped by the project and provides the interactive terminal version of the movie scene.

参数

-a
Auto-decrypt: start the reveal immediately without waiting for a keypress.
-s
Mask single blank spaces too (tabs and newlines remain unmasked).
-f _COLOR_
Foreground colour of the revealed text. Accepts `white`, `yellow`, `black`, `magenta`, `blue` (default), `green`, `red`, `cyan`, or an `#RRGGBB` hex value.
-c
Clear the screen before running and restore the terminal state after completion.
-v
Print the version and exit.

FAQ

What is the nms command used for?

nms ("No More Secrets") reads text from standard input, displays it as random noise, and then animates a character-by-character decryption to the original content, recreating the famous data-decryption sequence from the 1992 film *Sneakers*. Because it reads stdin, nms composes naturally with pipes, letting you drop the effect on top of the output of any command. A companion program, sneakers, is also shipped by the project and provides the interactive terminal version of the movie scene.

How do I run a basic nms example?

Run `echo "[text]" | nms` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -a do in nms?

Auto-decrypt: start the reveal immediately without waiting for a keypress.