LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 10-31-2009, 12:03 PM   #1
mercury1992
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
help me-key combination for EOF?


what is the key combination for the EOF character on the terminal?
pl tell,i need it to complete my assignments
 
Old 10-31-2009, 12:20 PM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,563
Blog Entries: 29

Rep: Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179
Search Wikipedia for EOF and find this (after a reading about a god-struck shepherd).
 
Old 11-01-2009, 01:51 AM   #3
mercury1992
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Original Poster
Rep: Reputation: 0
my terminal does not respond to ctrl+d ....i am running a code which takes its input from the user and stores the input in a text file.can u please tell me any alternative key combinations as this one is not working....
 
Old 11-01-2009, 01:58 AM   #4
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Wheezy (Fluxbox WM)
Posts: 1,368
Blog Entries: 52

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
If you are running a program that inputs from the terminal, then ctrl-D is the end of file marker. Typically you would have to enter the ctrl-D on a new line.

If this doesn't work, then perhaps there is a problem in the code. Does it work when redirecting input from a file?

I'm assuming you are using a bash shell under linux?
 
Old 11-01-2009, 08:48 AM   #5
r_s
Member
 
Registered: May 2009
Distribution: slackware, fedora, ubuntu
Posts: 94

Rep: Reputation: 21
If you are taking input from the terminal and just redirecting it to a file, then Ctrl-D will be the end of file marker and it will mark the end of your input.
 
  


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
key combination for � symbol ceantuco Linux - Newbie 20 06-17-2009 04:05 PM
Tilde? What's the key combination to get it ? DOTT.EVARISTI Linux - Software 8 07-06-2007 07:07 AM
Ascii key combination? pidg30n Linux - Desktop 1 06-20-2007 05:09 PM
Bind Mouse Button Combination to Keyboard Key Combination? neoAKiRAz Linux - Desktop 0 05-04-2007 01:49 PM
Create Key Combination/Binding kegwell Linux - General 2 02-16-2006 09:03 PM


All times are GMT -5. The time now is 05:10 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration