LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-05-2010, 12:32 PM   #1
ruintc
LQ Newbie
 
Registered: Sep 2010
Distribution: openSuse 11.3
Posts: 5

Rep: Reputation: 0
cannot quit terminal command : grep some_word


After typing "grep some_word" on terminal 6, the system doesn't do a thing, just lets me type endlessly. I've tried "Esc", "q" , [CTRL] + x, "exit" and no luck.

I bet I'll kick my ass when you tell me but at the moment I can't figure it out. Rebooting would probably solve the problem but there must be a better way.

Thank you,

Rui
 
Old 09-05-2010, 12:33 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,823

Rep: Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611
ctrl+c, the standard interrupt keypress
 
1 members found this post helpful.
Old 09-05-2010, 12:33 PM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Try
CTRL_C
 
1 members found this post helpful.
Old 09-05-2010, 12:35 PM   #4
ruintc
LQ Newbie
 
Registered: Sep 2010
Distribution: openSuse 11.3
Posts: 5

Original Poster
Rep: Reputation: 0
Cool. It worked. Thank you. Is it normal though to stop with this command in particular?
Or did I do something stupid?
 
Old 09-05-2010, 02:07 PM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,823

Rep: Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611
That's exactly what grep does when you give it the input you did.

Usually you want to do `grep search-string input-file`. Since you didn't give it an input file, it was reading from STDIN - ie waiting for your input.
 
Old 09-05-2010, 02:29 PM   #6
ruintc
LQ Newbie
 
Registered: Sep 2010
Distribution: openSuse 11.3
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks AlucardZero.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Any way to keep a remote terminal running even when you quit your client program? roystonlodge Linux - General 2 10-14-2009 03:54 PM
End of File In Terminal Cannot Quit Sometimes rtrahan Linux - Newbie 2 01-25-2009 07:14 AM
Why can i not close socket with command /quit lrios Programming 11 05-08-2008 11:06 PM
using grep and egrep in the terminal KumARan23 Linux - Newbie 3 11-11-2007 09:27 AM
terminal question (I think it has to do with grep) itz2000 Linux - Newbie 5 05-11-2006 06:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration