LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-04-2006, 12:40 AM   #1
royeo
Member
 
Registered: Jun 2006
Posts: 150

Rep: Reputation: 15
How to start over in a teminal


When I'm in a terminal and I've executed a command, I don't know how to start over. End that session, etc.

Can someone please tell me how to do this? Right now I just exit the terminal and start a new one.

Thanks,

royeo
 
Old 08-04-2006, 12:47 AM   #2
whk
Member
 
Registered: Jun 2005
Posts: 202

Rep: Reputation: 35
cli

when that command just keeps going use Ctrl>backslash to quit.
And then use clear

Last edited by whk; 08-04-2006 at 12:48 AM.
 
Old 08-04-2006, 01:27 AM   #3
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
ctrl+C is usually a clean exit out of any running command/program.

regards,
...drkstr
 
Old 08-04-2006, 01:51 AM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Terminal windows often provide a menu with one or more reset options, should the terminal window get really screwed up.
 
Old 08-04-2006, 01:54 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
You can also background the program with a:
CRTL Z
And then to bring it back to life, fg.

I read something about CTRL D being a clean way to exit, and CTRL C the 'dirty but works' way; however, I don't think I've ever seen, used, or read about CTRL D being used/suggested other than that single time.

Cool
 
Old 08-04-2006, 03:25 AM   #6
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Quote:
Originally Posted by MasterC
You can also background the program with a:
CRTL Z
And then to bring it back to life, fg.

I read something about CTRL D being a clean way to exit, and CTRL C the 'dirty but works' way; however, I don't think I've ever seen, used, or read about CTRL D being used/suggested other than that single time.

Cool
I use both, ctrl-D as i understood was an exit command, but also when being in the prompt, it will log you out/close your terminal, which i use it for.
 
Old 08-04-2006, 04:51 AM   #7
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Ctrl-D is the EOF (end-of-file) shortcut. It is typically used in programs that interactively let you type in text (like /bin/mail). Ctrl-D can be used to indicate the end of your input.

Ctrl-C, on the other hand, sends the program a signal telling it to halt immediately.

Ctrl-Z suspends the program. You can continue afterwards using either fg (putting the program back in foreground) or bg (background).
 
Old 08-04-2006, 05:50 AM   #8
fatra2
Member
 
Registered: Feb 2004
Location: Switzerland
Distribution: Fedora - RedHat - Mandrake - OpenSuse
Posts: 216

Rep: Reputation: 35
You can also look for a tutorial on the web. I tried typing on google "bash tutorial" and got plenty of informations on how to do this or that. It's a good start.

Cheers
 
Old 08-05-2006, 12:33 AM   #9
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
Also 'clear' clears the terminal screen, if that's all you're trying to do.
 
  


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
when i try to start samba pdc's smb service nmbd failed to start . sandeepchau123 Linux - Newbie 2 10-20-2007 01:59 PM
running ubuntu amd64 drake need help w/ teminal commands linux_gorilla Linux - Newbie 1 08-03-2006 05:26 PM
fc2-gnome : Applications dont start / very slow to start nox104 Linux - Software 0 08-18-2004 08:53 PM
Help,my teminal in Xwindow does not work jeanscn General 7 12-03-2003 12:15 PM
Windows Teminal Linux PlatinumRik Linux - Networking 2 05-09-2003 01:01 PM


All times are GMT -5. The time now is 05:51 PM.

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