Apple Event: May 7th at 7 am PT

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 Best 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 ID.