this post was submitted on 14 Jul 2023
828 points (95.1% liked)
Programmer Humor
32482 readers
483 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Ctrl+a - go to beginning of line (alpha? I dunno)
ctrl+e - go to (e)nd of the line
alt+f - (f)orward one word
alt+b - (b)ack one word
You might already know these but no one else has posted them on this thread yet. I work in both Linux and Mac a lot and this works for them. No idea about Windows I'm no longer forced to use it at work ๐
Also
Ctrl + w
to delete one word backwards (which is what OP wants to do).Edit: Nvm I misread the post, deleting is not what OP wants to do. Still gonna keep this because
Ctrl + w
is easily the readline shortcut I use the most.While we're at it:
Alt+d
deletes the next word.