K9s Keyboard Shortcuts

Complete K9s keyboard shortcuts reference — 23 shortcuts across 3 categories. Quick reference cheat sheet for Windows & Mac.

Navigation & Views (8)

ShortcutAction
:Command mode
/Filter resources
EscBack / clear filter
?Show keyboard help
EnterDrill down
0Show all namespaces
GGo to bottom
Ctrl + AList resource aliases

Resource Actions (10)

ShortcutAction
DDescribe resource
YView YAML
EEdit resource
LView logs
SOpen shell
AAttach to container
Shift + FPort-forward
Ctrl + DDelete resource
Ctrl + KKill resource
SpaceMark item

Sorting & Session (5)

ShortcutAction
Shift + CSort by CPU
Shift + MSort by memory
Shift + NSort by name
Shift + ASort by age
Ctrl + CQuit K9s
📄 View Printable Cheat Sheet — Download as PDF or print · 🧩 Combine with other tools

Related Shortcut Pages

Kubernetes (kubectl) Helm Docker Lazydocker tmux Lazygit

Search 13,500+ shortcuts across 269 platforms

Explore All Platforms Practice Shortcuts
🔧 Spotted an error or a missing shortcut? Suggest an edit on GitHub — every accepted fix goes live on this page, the API and the CLI.

Type a colon, go anywhere

K9s drives Kubernetes the way Vim drives text. : opens command mode — type a resource name or alias (:pods, :svc, :deploy) and the view switches instantly; Ctrl + A lists every alias if you forget one. / filters the current table as you type, Esc clears it, 0 widens the view to all namespaces, and Enter drills down — namespace to pod to container — while Esc climbs back out. ? shows context-sensitive help for whatever view you are in.

Actions apply to the highlighted row: D describes, Y shows YAML, E edits in your $EDITOR, L streams logs, S opens a shell in the container, A attaches, and Shift + F sets up a port-forward without ever typing a kubectl command. Space marks multiple rows so one action hits them all.

Finding the resource hog

When a node is unhappy, the sort keys answer the first question fast: Shift + C orders by CPU, Shift + M by memory, Shift + A by age, Shift + N back to names. Combined with 0 for all namespaces, the busiest pod in the cluster surfaces in three keystrokes. Ctrl + C quits K9s when you are done.

Frequently asked questions

What is the difference between Ctrl + D and Ctrl + K?

Ctrl + D is a normal delete: it asks for confirmation and lets Kubernetes terminate the resource gracefully. Ctrl + K kills immediately — no confirmation, no grace period. Reach for K only when a pod is stuck and refusing to die politely.

How do I jump between resource types quickly?

Command mode: press : and type the resource or its alias — :po, :svc, :ns, :no for nodes. Ctrl + A shows the full alias table. It is dramatically faster than any menu, and it works from every view.

What is the fastest log-check workflow?

Filter with / to isolate the pod, then L to stream its logs; Esc returns to the table. For deeper poking, S opens a shell inside the container directly — the kubectl exec dance reduced to one key.

When do I use / versus : ?

/ narrows what you are looking at — it filters the current table. : changes what you are looking at — it switches to a different resource view. Filter with slash, navigate with colon.

How do I operate on several pods at once?

Mark them with Space — each press toggles the highlighted row — then trigger the action once: delete, or kill applies to every marked item. The mark count shows in the header so you know exactly what is in scope.

🤖 Ask AI about K9s shortcuts

Open your assistant with this page preloaded as the source — great for follow-up questions like "which of these work in other apps?"

ChatGPT Claude Perplexity Gemini Grok