Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8979659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:53:52+00:00 2026-06-15T19:53:52+00:00

After I had typed a long command in the bash, i determined not to

  • 0

After I had typed a long command in the bash, i determined not to execute it for some reason.
But i just wanted to start a new line without clear the command. That command was still on the screen? Somebody help me?

#I typed as below:
$>find -name "filepattern" -exec grep "hello" {} \;

#I wanted as below without executing the 'find' command.
$>find -name "filepattern" -exec grep "hello" {} \;
$>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T19:53:53+00:00Added an answer on June 15, 2026 at 7:53 pm

    You can use ctrlc to ‘cancel’ a command you’ve typed.

    My testing, on OS X:

    bash-3.2$ find -name "filepattern" -exec grep "hello" {} \; <ctrl+c>
    bash-3.2$ 
    
    bash-3.2$ /bin/bash -version
    /bin/bash -version
    GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin12)
    Copyright (C) 2007 Free Software Foundation, Inc.
    bash-3.2$ 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had a performance problem today that showed up after some profiling. Calls to
I had this nasty bug that disappeared in the past but now after quite
I've had some problems with a Django application after I deployed it. I use
After searching a lot i did not get any answers and finally i had
I just had my app crash and now after alot of work its back
I had a working Active Admin app working on my local server, but after
After working on some test code for open ID authentication, I had a break
I wanted to automate ssh logins. After some research, it seemed like tcl/expect was
After having had a dev PC HD corrupt, I'm considering the idea of making
I had a weird issue arise after using CodeMaid to clean up my code.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.