Virtual Console RedHat


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Virtual Console RedHat
# 1  
Old 06-03-2014
Virtual Console RedHat

Hi all,

I am new to this forum, I have been searching on how I can select text in a virtual console in RedHat without any luck, I would liek to select the text without using a mouse, just with keyboard, not only to select text but to move around the lines, I know Shift+PageUP will scroll up and Shif+PageDown will scroll down, but I would like, let's say to move one line above and see where is the cursor, hope I make myself clear.

Note: Something like in vim, using h,j,k,l to move one line at a time.
Thanks in advance,
# 2  
Old 06-04-2014
When you say "virtual console" what are you referring to? Is the server running under VMWare, Hyper-V or the like, or are you at the GUI console of a desktop server and have opened a console window?

When you are looking to cut/copy/paste, where do you want to cut/copy/paste to/from?


If you are editing a file with vi or vim, you can place the cursor on the line to be cut/copied and type (in command mode) dd to cut or Y to copy the line. If you need to cut/copy a block, you can specify the number of lines involved from the current line, so 3dd will cut the current and next two lines, 20Y will copy the current and next 19 lines.

To paste it in, you have a choice, p or P. The lower case pastes after the current line that the cursor is on. The upper case pastes before the current line that the cursor is on.



Is this what you need, or have I completely missed the point? Smilie



I hope that this helps,
Robin
This User Gave Thanks to rbatte1 For This Post:
# 3  
Old 06-04-2014
Or do you want to 'copy' text that an application 'spits' out?
In that case, redirect the output similar to:
Code:
prog-with-desired-output > ~/copied_text.txt

As in:
Code:
grep -i term /etc/default/grub > ~/values-that-match-term.txt

hth
# 4  
Old 06-04-2014
Thanks for the replies, I apologize if I didn't make myself clear, by virtual console I ment when you use Alt+F2 or any other F* to go to console alone, in there i would like to select text not actually copy paste it, but let's say if i want to show and highlight some text in the console, hope it's clear.


Thanks
# 5  
Old 06-04-2014
The screen package/command might help you.
# 6  
Old 06-04-2014
Do you mean set the text to bold, underline, reverse video or blinking? It might be possible to even use colours if your terminal supports it (especially on the GUI console)



Robin
# 7  
Old 06-04-2014
Let me put this question from another direction:
Why, for what reason, do you want to mark/higlight text there?
What is the purpose of selecting text, without any further action, such as copy'ing or pipe it?

If it is for screenshots, there's much less trouble doing so in a terminal window of your prefered GUI.

Might this be a homework assignment?
This User Gave Thanks to sea For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Virtual Terminal (Console) showing non-global zone?

Hope that everyone is doing well today. Happy Friday. I am running an illumos (opensolaris) based system which is like SmartOS, OmniOS, and OpenIndiana I have been searching all over the Internet into various documents and forms that have to do with Solaris, Opensolaris, Illumos, and SmartOS... (3 Replies)
Discussion started by: LonnieTC
3 Replies

2. UNIX for Beginners Questions & Answers

Providing virtual machine priority in kvm based virtual machines

Hi All, Is there any way I can prioritize my VMs when there is resource crunch in host machine so that some VMs will be allocated more vcpu, more memory than other VMs in kvm/qemu hypervisor based virtual machines? Lets say in my cloud environment my Ubuntu 16 compute hosts are running some... (0 Replies)
Discussion started by: SanjayK
0 Replies

3. UNIX for Beginners Questions & Answers

How to perform kickstart installation with virtual floppy image from ILO console?

HI All, I have created a kickstart file and converted into .img with below procedure to mount this as a floppy image file to supply the kickstart file during the installation time. But installation failing with unknown ks file location and other error messages. 1. Build an empty floppy... (3 Replies)
Discussion started by: venumutyalu
3 Replies

4. Solaris

Change hostID of Solaris 10 virtual/guest machine installed by Virtual Box 4.1.12 on Windows-XP host

Trying to set or modify the randomly set hostID of a Solaris 10 virtual/guest machine that I installed on a Windows-XP host machine (using Virtual Box 4.1.12). I was able to set/modify the hostname of the Solaris 10 virtual/guest machine during installation as well as via the Virtual Box... (4 Replies)
Discussion started by: Matt_VB
4 Replies

5. Ubuntu

ubuntu 9.10 virtual console issue

i'm having a frustrating issue with virtual consoles on my ubuntu 9.10 setup i was having trouble accessing the virtual consoles at all (no visible display) so i installed XDM and set it as the default X login manager) now when i hit ctl-alt F1-F6 instead of the usual getty (login prompt) i get... (0 Replies)
Discussion started by: hopper195
0 Replies

6. UNIX for Dummies Questions & Answers

Have to log out of a virtual terminal twice in order to exit virtual terminals

Not really a newbie, but I have a strange problem and I'm not sure how to further troubleshoot it. I have to log out of a virtual terminal by typing exit, then exit again as in: woodnt@toshiba-laptop ~ $ exit logout woodnt@toshiba-laptop ~ $ exit logout I DON'T have to do this when I'm... (1 Reply)
Discussion started by: Narnie
1 Replies

7. UNIX for Dummies Questions & Answers

Windows to Linux remote console using VNC brings up blank console screen with only mouse pointer

:confused:Hi This was installed on the Linux box a few weeks back by a guy that no longer works for us. All worked fine until last week. Now when we connect its just a blank screen with no icons. I get a whole bunch of errors when starting the service too: Tue Feb 23 14:29:45 2010 ... (1 Reply)
Discussion started by: wbdevilliers
1 Replies

8. Red Hat

Virtual ip or CARP configure in Redhat Linux

Hi everyone, Can you please tell me the procedure to configure Virtual ip (CARP) mechanism into the Redhat Linux? Thanks in advanced. Regards, Jagdish Machhi (1 Reply)
Discussion started by: jagdish.machhi@
1 Replies

9. UNIX for Advanced & Expert Users

Problem regarding :::: Xen virtual console

hello, I am using fedora core 6. and there is Xen Virtual Console installed in my system ....due to which I am not able to use my serial ports....... What is thi Xen virtual console and what it does????? So, Can I unintall this Xen virtual Console..... or any method so that I can use my... (3 Replies)
Discussion started by: arunchaudhary19
3 Replies
Login or Register to Ask a Question