You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to delete long command from terminal

Hi,

I opened up a terminal and typed a long command. Now I don't want to execute typed command but instead I want to write another command. Alternatively, I can close that terminal window and open a new one. How do I delete command without pressing delete button 50 or more times as my command has more than 50 characters.

Joe

MacBook Pro (2020 and later)

Posted on May 15, 2022 3:27 AM

Reply
Question marked as Top-ranking reply

Posted on May 15, 2022 4:01 AM

Hi,

CTRL+u or CTRL+c


1 reply

How to delete long command from terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.