Sponsored Content
Full Discussion: Vim tips and tricks
Top Forums UNIX for Beginners Questions & Answers Vim tips and tricks Post 302833301 by cesar-rgon on Tuesday 16th of July 2013 07:10:43 PM
Old 07-16-2013
Excelent summary of hotkeys.
Thanks.
 

6 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

tar tricks

Hello there, Is there anyway to make the tar utility print the contents of the files inside it (not list the files, but rather their contents) sequentially from the command line? What I ultimately would like to do is to have a way of printing the contents of each file in the tar archive... (2 Replies)
Discussion started by: neked
2 Replies

2. Shell Programming and Scripting

need couple of ksh tricks please

1) I ran myScript with 2 arguments, I meant to use 3 if I do r my, it will rerun it with the 2 arguments. is there a way I can do r my and add a third argument at the end? 2) say I did myAcript.ksh 2 5 7 8 I realise my typo. is there an easy way to redo the command replacing A with S? ... (4 Replies)
Discussion started by: JamesByars
4 Replies

3. Post Here to Contact Site Administrators and Moderators

Solaris tips and tricks

What do you think could we open new top topic with tips and tricks and to show to other users some tricks what do we know like dtrace , new virtual server , how to add new users etc. This is only suggestion (1 Reply)
Discussion started by: solaris_user
1 Replies

4. UNIX for Dummies Questions & Answers

Sed Tricks

I have a file which containd a string "old" and I need to replace all old with "new" if and only if it is a string not part of a string like Gold or fold etc. I tried with sed like below echo "old gold old" | sed 's/old/new/g' It doesn't give the desired output, It give "old Gnew new".... (3 Replies)
Discussion started by: siba.s.nayak
3 Replies

5. Solaris

Very Importan - Vim Settings - Error while opening a File using vim

I downloaded vim.7.2 and compiled the vim source . Added the vim binary path to PATH (Because iam not the root of the box) when i load the file using vim it throws me an error Error detected while processing /home2/e3003091/.vimrc: line 2: E185: Cannot find color scheme darkblue line... (0 Replies)
Discussion started by: girija
0 Replies

6. UNIX for Advanced & Expert Users

Basic VI tricks

I found a decent guide of VI basic tricks. This guide does expect you to have a decent understanding of VI. It does not go over very much beginner related. vi Manual (3 Replies)
Discussion started by: cokedude
3 Replies
VIRT-VIEWER(1)						User Contributed Perl Documentation					    VIRT-VIEWER(1)

NAME
virt-viewer - display the graphical console for a virtual machine SYNOPSIS
virt-viewer [OPTIONS] -- DOMAIN-NAME|ID|UUID DESCRIPTION
virt-viewer is a minimal tool for displaying the graphical console of a virtual machine. The console is accessed using the VNC or SPICE protocol. The guest can be referred to based on its name, ID, or UUID. If the guest is not already running, then the viewer can be told to wait until is starts before attempting to connect to the console The viewer can connect to remote hosts to lookup the console information and then also connect to the remote console using the same network transport. OPTIONS
The following options are accepted when running "virt-viewer": -h, --help Display command line help summary -V, --version Display program version number -v, --verbose Display information about the connection -c URI, --connect=URI Specify the hypervisor connection URI -w, --wait Wait for the domain to start up before attempting to connect to the console -r, --reconnect Automatically reconnect to the domain if it shuts down and restarts -z PCT, --zoom=PCT Zoom level of the display window in percentage. Range 10-200. -d, --direct Do not attempt to tunnel the console over SSH, even if the main connection URI used SSH. -a, --attach Use libvirt to directly attach to a local display, instead of making a TCP/UNIX socket connection. This avoids the need to authentication with the remote display, if authentication with libvirt is already allowed. This option does not work with remote displays. -f, --full-screen Start with the window maximised to fullscreen --debug Print debugging information -H HOTKEYS, --hotkeys HOTKEYS Override the default hotkey bindings with HOTKEYS. Where HOTKEYS is <action1>=<key1>[+<key2>][,<action2>=<key3>[+<key4>]]. Key-names are case-insensitive, valid actions are: toggle-fullscreen, release-cursor, smartcard-insert and smartcard-remove. Examples: --hotkeys=toggle-fullscreen=shift+f11,release-cursor=shift+f12 --hotkeys=release-cursor=ctrl+alt Note that hotkeys for which no binding is given are disabled, specifying an empty string disables all hotkeys. -k, --kiosk Start in kiosk mode. In this mode, the application will start in fullscreen with minimal UI. It will prevent the user from quitting or performing any interaction outside of usage of the remote desktop session. Note that it can't offer a complete secure solution by itself. Your kiosk system must have additional configuration and security settings to lock down the OS. In particular, you must configure or disable the window manager, limit the session capabilities, use some restart/watchdog mechanism, disable VT switching etc. --kiosk-quit <never|on-disconnect> By default, when kiosk mode is enabled, virt-viewer will remain open when the connection to the remote server is terminated. By setting kiosk-quit option to "on-disconnect" value, virt-viewer will quit instead. Please note that --reconnect takes precedence over this option, and will attempt to do a reconnection before it quits. EXAMPLES
To connect to the guest called 'demo' running under Xen virt-viewer demo To connect to the guest with ID 7 running under QEMU virt-viewer --connect qemu:///system 7 To wait for the guest with UUID 66ab33c0-6919-a3f7-e659-16c82d248521 to startup and then connect, also reconnecting upon restart of VM virt-viewer --reconnect --wait 66ab33c0-6919-a3f7-e659-16c82d248521 To connect to a remote console using TLS virt-viewer --connect xen://example.org/ demo To connect to a remote host using SSH, lookup the guest config and then make a direct non-tunnelled connection of the console virt-viewer --direct --connect xen+ssh://root@example.org/ demo AUTHOR
Written by Daniel P. Berrange, based on the GTK-VNC example program gvncviewer. BUGS
Report bugs to the mailing list "http://www.redhat.com/mailman/listinfo/virt-tools-list" COPYRIGHT
Copyright (C) 2007-2008 Red Hat, Inc., and various contributors. This is free software. You may redistribute copies of it under the terms of the GNU General Public License "http://www.gnu.org/licenses/gpl.html". There is NO WARRANTY, to the extent permitted by law. SEE ALSO
virsh(1), "virt-manager(1)", the project website "http://virt-manager.org" perl v5.16.3 2014-06-10 VIRT-VIEWER(1)
All times are GMT -4. The time now is 05:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy