The official NetHack Guidebook introduced the commands by listing them all in alphabetical order by key, which can be overwhelming. The plan for this page is to instead group the commands into functional groups.
On this page,indicates the lowercase letter, while indicates the uppercase letter. To type , you must hold and press .
Here,+ means to hold and press (or , it matters not). NetHack uses "^ " for + , so you might also see ^ in this guide. Do not confuse it with , which is the caret (often + ), not control key.
If you hold a key down, it repeats, like you were typing in a text editor. For example, press and holdto move left as far as possible, or repeatedly attack the monster on your left.
The NetHack/Walkthrough introduces these keys more gradually.
Thekeys move your character to the adjacent square west, south, north, or east. The keys move your character diagonally. If the specified square contains a monster, you attack that monster. Thus you will use these keys much, not only for moving around the dungeon but also for fighting monsters. (Unless you disabled the safe_pet option, you will not attack your own pet or a peaceful monster.)
If number_pad is on, you instead use. On DOS, the arrow keys tend to work, but on Unix platforms the arrow keys tend to not function. However, NetHack is easier to play if you learn the keys.
You need to learnand to open and close doors. Closed doors appear on the map as plus signs + in doorways, while open doors appear as - or | (or shaded squares if you have DECgraphics). Just move yourself adjacent to a door, then press or followed by the direction of the door.
Only useor for doors.
, show inventory
Useto show your inventory. This is one of the most important keys in the game, because you can use it to check the inventory letters of any of your items! If you want, you can use to show a fraction of your inventory, for example a list of all your scrolls.
Move your @ onto an item or pile of items, then pressto pick up the item. If there was more than one item, NetHack gives you a menu. You can then press , , to select + or deselect - each menu item. Dismiss the menu and pick up the selected items by pressing . All menus work in a similar manner.
[d], [D] drop
The inverse of [,], press [d] to drop an item. Then press the inventory letter. The [D] keys give you menus that let you drop multiple items simultaneously.
Using certain items
You do not need to learn these commands until you find certain items. These commands all work in the same way. Press a key such as, then press the inventory letter of the item. If you forgot the inventory letter, use to check your inventory of the item type, or if you want try something unusual (like eating your armor or throwing objects that are not weapons).
Useto eat food. In the dungeon, the % sign represents food, a corpse, or anything else that is edible, though it might not be healthy to eat. There are two ways to use this command.
- You can eat food in your inventory. Simply press , then the letter of the food item. Most characters start out already carrying some food rations.
- If you find food on the ground, you can eat it without putting it in your inventory first. Move your @ onto a % then press ; the game will ask whether you want to eat that item. Press to eat it, or to choose from your inventory instead. This makes it easy to eat recently-killed monsters.
, armor [
To wear armor from your inventory, pressand the item's letter. To take off armor, press and the item's letter. Note that these are both uppercase letters, so you need to use to type them.
If you use lowercase, you will wield the armor (as a weapon) instead of wearing it. If you make that mistake, you can press again to switch to a different weapon.
, rings= and amulets"
To put on a ring or amulet from your inventory, pressand the item's letter. To remove a ring or amulet, press and the item's letter. If you try to use to take off armor or to remove a ring or amulet, the game will tell you the correct command to use.
Suppose you find a sword or other melee weapon. To wield it, press lowercaseand the item's letter. Whenever you wield a weapon, you automatically unwield your existing weapon, if any. While you wield a weapon, you will always use it when attacking a monster (by moving into it with [yuhjklbn] or the numpad keys).
To fight bare-handed, press, then the hyphen . This is useful if you want to fight without a weapon or you want to drop your weapon with .
Instead of wielding a weapon, you can try to throw it as a projectile. You can also throw arbitrary items such as rocks and food rations. Press, then select the item, then select a direction to throw. In NetHack, you can only throw in eight directions (or up and down).
, ranged weapons )
A ranged weapon is more complex. You need to wield a weapon such as a bow, then throw some ammunition such as arrows. The following combinations are possible:
- bows with arrows
- crossbows with crossbow bolts
- slings with rocks or gems
First, pressto wield a bow. Then, press , select an arrow, and select a direction. Whenever you throw the correct kind of ammo, you will use your weapon instead of your bare hands.
To check if you are really using the bow, unwield it () and try throwing an arrow. Then wield the bow and throw another arrow. While using the bow, the arrow should fly farther.
That said, it can be annoying to usewhen you are always throwing the same type of item. In that case, press , then type the letter of your favorite projectiles to put them in your "quiver". Then use to "fire" your ammo. The command is exactly like , except that uses your quiver instead of asking you which item to throw.
When you find a wand, pressto activate the magical function of that wand; then select the letter of that wand. What you do next depends on what the wand does.
scrolls ? and spellbooks +
To read a scroll or spellbook, pressand then the letter of the item. By reading it, you will activate the scroll or memorise the spell, unless something goes wrong.
Once you memorise a spell, you can activate it by pressing, then choosing the spell from the menu.
To quaff (drink) a potion, press, then its letters.
There are other uses for potions:
- you can use to throw them at something.
- you can use #dip to dip something from your inventory into a potion.
To use various tools (pick-axes, lamps), press. You can also use this to break wands; remember to use instead if you want to zap a wand. NetHack will ask you for confirmation if you try to break a wand.
The effect of applying a tool depends on its purpose; for example applying a lamp will switch it on or off.
This sometimes forgotten feature lets you check your character's race, role, gender, and alignment, as well as the names of the Lawful, Neutral, and Chaotic gods. In explore mode, this also reveals some extra information.
[CTRL+P] previous messages
You could just check your inventory with [i], but if you want, then you can learn these shortcuts.
[$], [(], [)], [+], [
These keys match the symbols of items. [$] counts your gold $ (but you could just read the status line); [(] checks which tools ( you currently use, [)] checks which weapons ) you currently wield; [+] lists the spells from spellbooks + that you memorised, [ checks which armor [ you currently wear.
[@], [*], [\]
These keys are less obvious; [@] toggles the autopickup option on or off and reminds you of which pickup_types are on; [*] combines several other keys to list which items you currently use; [\] lists some knowledge about items that you recognise.
If you play NetHack frequently, you might want to learn these advanced controls.
Press uppercase, then to attack an adjacent square. Use this when you think that there is an invisible monster there. For the inverse, press to try to move on to the square when you remember an invisible monster, but you guess that the monster has moved.
If you hold [SHIFT] while pressing the direction keys, you continue to move in that direction as far as you can, until you stop at a doorway, pile of objects, stairwell, or other such dungeon feature, or become blocked by some obstacle such as a wall, closed door, or monster. Use SHIFT to move as rapidly as you can, without skipping over stairways. SHIFT is a shortcut against typing more keys; it does not make your character use less turns of game time. However, you might prefer to use [g], which lets you stop before doorways or hallway intersections; see the section after the next.
Holding [CTRL] while pressing any of [yuhjklbn] has the same affect as using [G]; see the next section.
Press [g] or [G], then press one of [yuhjklbn] to go in that direction until you find interesting. The main difference between this and using SHIFT is that you will stop one square before a doorway, not on the doorway. Thus, you can use [g] to move to a door, then close it.
If you use lowercase [g], you will also stop at intersections amid corridors. Thus [g] is the best way to move rapidly without accidentally walking too far.
This lets you teleport, but you have to first find a way to gain this ability.
Normally, you useto dismiss menus or "--More--" prompts.
Otherwise, this does nothing except to say "Unknown command ' '". That is, unless you enabled the rest_on_space option, in which case your character will waste one turn of game time doing nothing. You probably do not want to enable rest_on_space, as holding the space bar would then give monsters enough time to attack you.
If you really need to advance game time while doing nothing, use (or hold). At least you have a small chance of discovering a nearby secret door or trap.
Advanced keys, other
On Unix platforms, this suspends NetHack and returns to the shell, just as you can suspend other programs.
On Unix platforms or other systems using a command line, this lets you escape to a shell. NetHack starts this shell as a subprocess, so exit the shell to return to NetHack.