← 返回命令列表

Linux command

nethack-console 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Start NetHack

nethack

Start with a specific username

nethack -u [playername]

Start in discovery mode

nethack -X

Display high scores

nethack -s

Start with a specific game directory

nethack -d [path/to/directory]

Show version information

nethack --version

Show configuration file paths

nethack --showpaths

说明

nethack is a classic roguelike dungeon exploration game where you descend through the Mazes of Menace to retrieve the Amulet of Yendor. The console version uses ASCII characters to represent the game world, making it playable on any terminal. The player character (@) explores procedurally generated dungeons, fighting monsters, collecting items, and avoiding traps. The game features permanent death—when you die, the game is over and you must start fresh. This design philosophy emphasizes careful play and learning from mistakes. Game options are configured through ~/.nethackrc or the NETHACKOPTIONS environment variable. Within the game, press ? for help and O to view and change options. Movement uses hjklyubn keys (vi-style) or numpad with number_pad option enabled.

参数

-u _NAME_
Start game with specified player name
-d _DIR_
Use alternate game directory
-D
Start in debug/wizard mode (admin only)
-X
Start in discovery mode (non-scoring)
-n
Suppress news from game administrator
-s
Display high scores and exit
-v
Show version information
-p _PROFESSION_
Filter scores by profession/role
--version
Print version and exit
--showpaths
Show expected configuration file locations

FAQ

What is the nethack-console command used for?

nethack is a classic roguelike dungeon exploration game where you descend through the Mazes of Menace to retrieve the Amulet of Yendor. The console version uses ASCII characters to represent the game world, making it playable on any terminal. The player character (@) explores procedurally generated dungeons, fighting monsters, collecting items, and avoiding traps. The game features permanent death—when you die, the game is over and you must start fresh. This design philosophy emphasizes careful play and learning from mistakes. Game options are configured through ~/.nethackrc or the NETHACKOPTIONS environment variable. Within the game, press ? for help and O to view and change options. Movement uses hjklyubn keys (vi-style) or numpad with number_pad option enabled.

How do I run a basic nethack-console example?

Run `nethack` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -u _NAME_ do in nethack-console?

Start game with specified player name