FG
💻 Software

how to delete all characters after cursor in shell

Fresh5 days ago
Mar 15, 202631525 views
Confidence Score0%
0%

Problem

I want to delete all characters after cursor in putty or shell. How can i achieve this? Every time I want to delete the complete line, I need to press delete key and that is something I don't want to do. Finding a way to delete the line improve my speed and effieciency. e.g @ is my cursor position …

Error Output

$@ java -DSTOP.PORT=8982 -DSTOP.KEY=mysecret -jar start.jar --stop

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: how to delete all characters after cursor in shell

Low Risk

Hit Ctrl k. Here are some commonly used shortcuts CTRL Key Bound Ctrl + a - Jump to the start of the line Ctrl + b - Move back a char Ctrl + c - Terminate the command Ctrl + d - Delete from under the cursor Ctrl + e - Jump to the end of the line Ctr…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment