Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.)
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.
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
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
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.
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 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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.