LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-11-2016, 10:51 AM   #1
mangya
Member
 
Registered: Jul 2015
Distribution: CentOS
Posts: 89

Rep: Reputation: Disabled
Recommend me a terminal emulator.


Hello All

OS: CentOS 7 with Gnome GUI.

To enhance my knowledge on Linux, I'm referring Red Hat Online Documentation and the training videos provided by my company to me. I'll be working on RHEL server directly with no GUI in near future. Here is the problem, I've always used gnome-terminal for admin tasks, with all its luxuries like copy/paste, pgup/pgdn, mouse/right click and tabs etc. I tried my hands on console (Ctrl+Alt+F2), and just realised how much its difficult to accomplish my tasks without mouse and tabs. Anyway, I'm practising by using Ctrl+Alt+F1 (for web/video) and Ctrl+Alt+F2 (for console). But its too much pain.

Is there any terminal emulator which emulates exactly like console (very basic), so that I can use Alt+Tab to switch from web page and emulator quickly.

Thanks.

Last edited by mangya; 07-11-2016 at 10:57 AM.
 
Old 07-11-2016, 01:27 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,635

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by mangya View Post
Hello All

OS: CentOS 7 with Gnome GUI.

To enhance my knowledge on Linux, I'm referring Red Hat Online Documentation and the training videos provided by my company to me. I'll be working on RHEL server directly with no GUI in near future. Here is the problem, I've always used gnome-terminal for admin tasks, with all its luxuries like copy/paste, pgup/pgdn, mouse/right click and tabs etc. I tried my hands on console (Ctrl+Alt+F2), and just realised how much its difficult to accomplish my tasks without mouse and tabs. Anyway, I'm practising by using Ctrl+Alt+F1 (for web/video) and Ctrl+Alt+F2 (for console). But its too much pain.

Is there any terminal emulator which emulates exactly like console (very basic), so that I can use Alt+Tab to switch from web page and emulator quickly.

Thanks.
Simplest solution: stop using mouse and tabs...no need to install anything else. Or, boot into runlevel 3, which is NO GUI, and use the console directly...again, no need to install anything else.

To make learning faster, though...consider installing another instance of CentOS in Virtualbox, and set it to only boot to runlevel 3. That way, it's up in a window, with ONLY console access, but you can have web/video up in another to help you follow along.
 
2 members found this post helpful.
Old 07-11-2016, 01:57 PM   #3
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
Honestly, learn Emacs, or use zsh with vi bindings.

Learning Emacs was the best thing I did for using the shell efficiently; all the same key bindings and much of the same logic apply to both.

To make up for the general lack of modern conveniences that a GUI otherwise provides, you'll also want to use GNU screen, or possibly eshell in Emacs. Both of these give you the ability to "float" your cursor out of the shell, so you can scroll up and down and copy stuff that you need, and give you the option of tabs, and things like that.

My recommended terminal emulator is urxvt; nice and basic, but with unicode support.

Last edited by notKlaatu; 07-11-2016 at 01:58 PM.
 
1 members found this post helpful.
Old 07-11-2016, 08:53 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Emacs is far more than a terminal emulator and my experience has been that notklaatu gives good advice, but I've never troubled to learn emacs myself.

I would say it is worthwhile to learn vi/vim. You are liable to run into them installed by default on any distro; the same can't be said for emacs. Vi/vim can seem quite intimidating if you try to learn everything at once, but I've found that, by concentrating on between five and ten basic commands, you can use it quite nicely; then you can learn additional commands as you need them.

If you don't feel up to tackling emacs at this time and if you want to get back to basics, use Xterm or rxvt. (Using them is much easier if you learn how to tweak their configuration with an Xresources file.)

Just my two cents.

Last edited by frankbell; 07-11-2016 at 08:57 PM.
 
1 members found this post helpful.
Old 07-11-2016, 09:02 PM   #5
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
Sorry, I just re-read it and I see that I edited some stuff out of my intended response before posting. I should have been clearer: learning emacs is a good way to learn a lot of useful keyboard bindings, which are also applicable in a shell.

For instance, I used to not know that ctrl-k would cut ("kut") and ctrl-y would paste ("yank") text in a shell, so if I found myself on a text-only console, it was basically impossible for me to copy and paste without gpm. Other little key bindings helped efficiency a lot, too, like ctrl-a for HOME and ctrl-e for END, or ctrl-t to swap two letters, and so on. Learning emacs (or vi and then using vi bindings in your shell) just gets you more efficient in your shell; it has you working smarter, rather than floundering around trying in vain to work around the lack of a mouse.
 
Old 07-12-2016, 04:08 AM   #6
mangya
Member
 
Registered: Jul 2015
Distribution: CentOS
Posts: 89

Original Poster
Rep: Reputation: Disabled
Thanks TB0ne, notKlaatu and frankbell

I'll go with VirtualBox and Tmux. As for as emacs, i am using vim from past 4-5 years and i'm comfortable with it. I will stick with it.

Thanks
 
Old 07-12-2016, 05:05 AM   #7
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
http://www.linuxquestions.org/questi...es-4175581509/
 
Old 07-12-2016, 05:33 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
probably:
export TERM=vt100
export TERM=dumb
 
1 members found this post helpful.
Old 07-12-2016, 08:04 AM   #9
mangya
Member
 
Registered: Jul 2015
Distribution: CentOS
Posts: 89

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
probably:
export TERM=vt100
export TERM=dumb
Will you please explain what it will do? I ran this in gnome-terminal. Other than arrow keys not working in vim, I don't see any difference.

Thanks
 
Old 07-12-2016, 08:15 AM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
The terminal capabilities depends on the type of the terminal (implementation). The common way to (easily) recognize it is to use the variable TERM. All the terminal emulators will set it to some special value (for example xterm will set it to "xterm") and all the applications using terminals will look for it. Using vt100 and/or dumb means you have a vt100 (a very old one) or a really dumb terminal which has almost no features.
As an example try export TERM=dumb and less /tmp/some/bigger/file and less will report: WARNING: terminal is not fully functional
 
1 members found this post helpful.
Old 07-12-2016, 08:22 AM   #11
mangya
Member
 
Registered: Jul 2015
Distribution: CentOS
Posts: 89

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
The terminal capabilities depends on the type of the terminal (implementation). The common way to (easily) recognize it is to use the variable TERM. All the terminal emulators will set it to some special value (for example xterm will set it to "xterm") and all the applications using terminals will look for it. Using vt100 and/or dumb means you have a vt100 (a very old one) or a really dumb terminal which has almost no features.
As an example try export TERM=dumb and less /tmp/some/bigger/file and less will report: WARNING: terminal is not fully functional
OK Thanks.
 
Old 07-12-2016, 10:20 AM   #12
mangya
Member
 
Registered: Jul 2015
Distribution: CentOS
Posts: 89

Original Poster
Rep: Reputation: Disabled
I found a new way to switch to gui and console very quickly like alt+tab. I realised while in console tty2 (ctrl+alt+f2), when pressed alt+left arrow, it quickly moves to gui (ctrl+alt+f1). But you cannot move from gui to console by pressing alt+right arrow key. So after some google search, i came up with xdotool. I did as shown in screenshot. Now I can move to and fro between gui and console very quickly by pressing alt+right and alt+left.
Attached Thumbnails
Click image for larger version

Name:	Screenshot keyboard.png
Views:	22
Size:	48.9 KB
ID:	22419  
 
1 members found this post helpful.
Old 07-12-2016, 10:36 AM   #13
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
I only run Linux so some keys become useless unless my distro or I make a use.
 
Old 07-12-2016, 02:01 PM   #14
Joseph2016
LQ Newbie
 
Registered: Jul 2016
Location: New York
Distribution: Centos
Posts: 22

Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
Emacs is far more than a terminal emulator and my experience has been that notklaatu gives good advice, but I've never troubled to learn emacs myself.

I would say it is worthwhile to learn vi/vim. You are liable to run into them installed by default on any distro; the same can't be said for emacs. Vi/vim can seem quite intimidating if you try to learn everything at once, but I've found that, by concentrating on between five and ten basic commands, you can use it quite nicely; then you can learn additional commands as you need them.


Just my two cents.
where is the best place to read about those ?
 
Old 07-12-2016, 09:14 PM   #15
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
If you have vim installed, it comes with an interactive tutorial. Open a terminal and issue the command, vimtutor. HackerPublicRadio has a good series on vim, Linux Voice has a nice video, and a web\search will turn up lots of stuff.

This is a good intro to xterm: http://scarygliders.net/2011/12/01/c...best-terminal/ There also is an extensive man page. About dot com also has a pretty good introduction.
 
1 members found this post helpful.
  


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
New install Xubuntu 14.04 trying to replace default terminal with Terminator error:Failed to execute default Terminal Emulator bdalzell Ubuntu 2 06-19-2016 04:40 AM
[SOLVED] Which terminal emulator do you all use dugan Slackware 57 10-02-2012 04:13 PM
What is a terminal Emulator bharathgowda8 Linux - Software 5 09-06-2007 02:37 PM
terminal emulator iNET_boss Linux - Newbie 2 11-15-2005 03:06 PM
Terminal Emulator aukekim Linux - Software 5 09-07-2005 08:12 AM

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

All times are GMT -5. The time now is 11:09 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