Visit Jeremy's Blog.
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
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
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 Buster (Fluxbox WM)
Posts: 1,390
Blog Entries: 52

Rep: Reputation: 359Reputation: 359Reputation: 359Reputation: 359
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: 101

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
Tilde? What's the key combination to get it ? DOTT.EVARISTI Linux - Software 9 12-24-2018 05:33 PM
key combination for � symbol ceantuco Linux - Newbie 20 06-17-2009 03:05 PM
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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:42 AM.

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
Open Source Consulting | Domain Registration