LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-31-2009, 11:03 AM   #1
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, 11:20 AM   #2
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian except for netbook still on Slackware 13.37 (and I have to support Ubuntu)
Posts: 8,572
Blog Entries: 30

Rep: Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182
Search Wikipedia for EOF and find this (after a reading about a god-struck shepherd).
Old 11-01-2009, 01:51 AM   #3
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
Senior Member
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Jessie (Fluxbox WM)
Posts: 1,380
Blog Entries: 52

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
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, 07:48 AM   #5
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.


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

All times are GMT -5. The time now is 11:27 PM.

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