LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 12-10-2011, 01:20 PM   #1
malak33
Member
 
Registered: Dec 2011
Location: Amish Country PA, USA
Distribution: CentOS 6.2
Posts: 104

Rep: Reputation: 3
mutliple CLI?


just a quick question,
i was wondering if you can open up multiple CLI?
if so how is it done?
how do you switch between the 2 or more of them?
also can you maybe grep to CLI2 then maybe copy that somehow and insert that into a open txt doc in CLI1?
just wondering.
Thanks in advance guys
 
Old 12-10-2011, 01:37 PM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
If you mean something like 'xterm', then yes, you can open up lots of them. If you mean the things you get to by pressing Ctrl+Alt+F1,F2,F3,etc. (or Alt+F1,F2,F3,etc. if you're on them already) then, yes, you normally have about 6 open by default. For grepping and inserting, you might have to use something like screen, or you could redirect to a file and then concatenate the two
 
Old 12-10-2011, 01:38 PM   #3
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,825

Rep: Reputation: 221Reputation: 221Reputation: 221
You can switch shells with key press ctl+alt+f1, ctl+alt+f2 etc. to f7

You don't say what editor that you are using, what flavor of Linux, or if you have a mouse working in shell.
 
Old 12-10-2011, 01:59 PM   #4
malak33
Member
 
Registered: Dec 2011
Location: Amish Country PA, USA
Distribution: CentOS 6.2
Posts: 104

Original Poster
Rep: Reputation: 3
i am using CentOS 6.0 on a virtual box machine.
i tried pressing ctrl+alt+ the f keys nothing happened
i am using vim at the moment; it had a tutorial on how to use it that i found very helpful

yes i installed the xwindow, i believe that is what it is called. I couldn't get gnome to load but could get kde to.
so i have a mouse as well. I'm trying to do everything in the CLI; however I'm coming over from windows so it makes the transition easier.
Aswell as helping me troubleshoot, and making me feel comfortable...
go easy on me I'm new

@ Snark what do you mean xterm?

thanks
 
Old 12-10-2011, 02:04 PM   #5
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
Xterm is a terminal emulator. If you're using KDE, the default equivalent is Konsole so I meant you could open lots of Konsole windows. What type of terminal did you mean?
 
Old 12-10-2011, 02:18 PM   #6
malak33
Member
 
Registered: Dec 2011
Location: Amish Country PA, USA
Distribution: CentOS 6.2
Posts: 104

Original Poster
Rep: Reputation: 3
Yes, I'm using Konsole as my terminal emulator.
Multiple windows do not open up though??
I installed screen as well??
not sure how it works with CTRL A
 
Old 12-10-2011, 02:39 PM   #7
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
I'm a Gnome user, but I've tried KDE once or twice with Knoppix.

If memory serves, Konsole has a drop-down menu that lets you open another terminal in a separate tab. So one window can have multiple command lines--one for each tab.

Is that what you're looking for?
 
Old 12-10-2011, 04:10 PM   #8
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,825

Rep: Reputation: 221Reputation: 221Reputation: 221
If you have X installed then...
Yes konsole in KDE does allow tabs. You can have as many virtual terms open that you want. Switch between them by clicking on the tab you want. Haven't used KDE for years, look for a new tab item somewhere in its menus.

If you want to copy and paste in a terminal emulator, have 3 button emulation working on your mouse, then highlighting the text puts it on the clipboard, right+left click pastes it. I think that Konsole may have a copy and paste menus though.
Quote:
i am using CentOS 6.0 on a virtual box
Ok, not sure if you can switch between shells in a virtual machine. A shell is what you get after booting, without X windows loaded. Linux usually has 7 of them.

https://forums.virtualbox.org/
 
Old 12-10-2011, 06:42 PM   #9
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
In konsole, you may also use the mouse to highlight text (left click and drag the mouse over the text to copy), then ctrl-x to cut or ctrl-c to copy text in one konsole. Then place the cursor at the place to paste in the second konsole and ctrl-v to paste, assuming you are viewing text in konsole and not using a text editor. Text editors may have different keystrokes to cut, copy, and paste.

You may also use the edit menu in concole to do the copy highlighted text in one konsole and paste into another konsole.

Last edited by bigrigdriver; 12-10-2011 at 06:43 PM.
 
Old 12-10-2011, 06:43 PM   #10
hurry_hui
Member
 
Registered: Oct 2008
Location: Near Jakarta
Distribution: Slackware, Arch, Slax, Porteus, Tiny Core, Slitaz
Posts: 355
Blog Entries: 1

Rep: Reputation: 51
Quote:
Originally Posted by malak33 View Post
Yes, I'm using Konsole as my terminal emulator.
Multiple windows do not open up though??
I installed screen as well??
not sure how it works with CTRL A
First you need to install guest addition to ease working in vm environment (i.e., gaining keyboard and mouse control within vm) although it is not needed to move/switch between ttys. As others has suggested you can move between ttys by pressing Ctrl+Alt (F1-F7) (yes you can switch between ttys within vbox as well, don't forget to capture the keyboard or mouse by pressing host key, i.e, right control key).

Tty1 is used for first login and tty7 is used for X server, other ttys will give you login prompt. If you have installed screen just type screen once to run the program and another one to open a new window. Screen keybinding like Ctrl-A + key (0-9, p,n, etc), for example, will bring you to or move among windows of virtual ttys. You can also install twin to enable multiple tab windowing. Btw, you can also use urxvt (rxvt-unicode) instead of konsole to save some resources.
 
1 members found this post helpful.
  


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
Compression/archive tool that utilizes mutliple cores? hawk__0 Linux - Software 3 10-02-2009 12:13 AM
Mutliple Drive booting.. saif_shakeel Linux - Distributions 4 09-03-2008 02:09 AM
Saving CLI data in the CLI Tons of Fun Linux - General 4 04-03-2007 06:42 AM
RS232 serial port errors when performing mutliple writes riffy Linux - Newbie 0 07-11-2006 01:12 PM
mutliple email addresses (domains) lenlutz Linux - Networking 2 10-15-2003 07:52 PM


All times are GMT -5. The time now is 08:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration