How to configure PuTTY so that Home/End/PgUp/PgDn work properly in bash?
Fresh3 days ago
Mar 15, 2026137748 viewsConfidence Score1%
1%
Problem
The keys Home, End, PageUp, PageDown all type a in my bash session instead of moving the cursor / view around. Why does this happen and which settings do I need to change? The question originally read: In PuTTY, why does pressing the "Home" key on the shell (bash) type a "~"? Or rather, how do I make it move the cursor to the start of the command I've typed? (I thought the reason was that ~ is the home directory, but the answers say this is not so.)
Error Output
GNU bash, version 4.0.28(1)-release (x86_64--netbsd) PuTTY v0.60
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to configure PuTTY so that Home/End/PgUp/PgDn work properly in bash?
Low Risk
Under the Connection > Data tab, change the Terminal-type string from the default “xterm” to “linux”. It worked for me.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix