LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-10-2006, 08:06 PM   #1
royeo
Member
 
Registered: Jun 2006
Posts: 150

Rep: Reputation: 15
How to stop a command or start over, in a terminal


I asked how to start over in a terminal before and I got an answer and it works but... The command I use now is "Ctrl + \" and like I said it works but after the command stops and I'm back at the prompt anything I enter, type, whatever, after that makes no sign. If I type in cd /. . . it's invisible.

Does anybody know how to start over in a terminal and then be able to see what you type.

I have FC-5 and use KDE.

Thanks,

royeo
 
Old 08-10-2006, 08:09 PM   #2
brainiac
Member
 
Registered: Jan 2005
Location: middle of a cornfield, IL
Distribution: Kanotix HD Install, Debian Testing, XP Pro,Vista RC1
Posts: 145

Rep: Reputation: 15
I use "Ctl"-c to stop a command and then an up arrow to reshow the previous command.
 
Old 08-11-2006, 01:20 PM   #3
pablob
Member
 
Registered: Apr 2003
Location: Madrid
Distribution: RHEL, Kubuntu, Solaris, TRU64
Posts: 382

Rep: Reputation: 31
sometimes " # tput clear " and " # reset " works if you can't see anything you are writing.
 
Old 08-11-2006, 03:41 PM   #4
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
if you type history it will give you a list of commands that you have typed.
 
Old 08-11-2006, 04:53 PM   #5
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
In addition to what's mentioned above, you can use smart job control features of your shell to make life eaiser for you. To do job control for bash, you can: use Ctrl-Z for stopping/pausing the foreground process, type `bg' to run a stopped process (but run it in the background), or type `fg' to run a stopped process in the foreground. The command `jobs' will give you a list of jobs and their numbers. If you have many jobs, you can use the aforementioned numbers after `fg' and `bg' to indicate what job you are applying the command to.
 
Old 08-11-2006, 05:00 PM   #6
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Also to start a job in the background you could type the command and place a ampersand after it IE ls -al & would run this job in the background
 
Old 08-12-2006, 01:21 PM   #7
soggycornflake
Member
 
Registered: May 2006
Location: England
Distribution: Slackware 10.2, Slamd64
Posts: 249

Rep: Reputation: 31
Quote:
The command I use now is "Ctrl + \"
Ctrl+\ sends a SIGQUIT to the process, which kills it (and if it's changed the terminal parameters, then your screen will be bodged).

It's generally better to use ctrl+c (SIGINT) to cause a clean exit, you'd usually only use ctrl+\ when ctrl+c doesn't work (and after that, do a reset if necessary as pablob mentioned).

Also note that ctrl+\, ctrl+c etc are just the default keys for these purposes, you can change them with stty (stty -a will show you the current terminal settings).
 
  


Reply



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
How to stop firewall logging to terminal screen ozymandias Linux - Security 10 10-01-2005 04:32 AM
Stop gnome terminal startup notification manobes Linux - Software 0 11-04-2004 09:42 AM
program makes terminal stop respond hotrodowner Linux - General 2 10-27-2004 05:56 PM
How to stop terminal escape sequences ? Mike Davies Linux - Newbie 1 08-08-2004 11:37 AM
start terminal & run command automatically peeples Linux - General 2 09-08-2003 02:57 PM

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

All times are GMT -5. The time now is 10:23 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
Open Source Consulting | Domain Registration