11-04-2013
Bash Tab Completion Hanging
Hi,
I'm having a problem with tab completion at the bash command line. For some reason, whenever I type g<tab>, the terminal will freeze up for 5-10 seconds before asking me if I want to display all 325 possibilities. I thought that maybe it's because of the high number of commands, but I have over 500 commands that start with p and don't have the same problem. As far as I can tell, only g completion has the problem.
I would like to debug this, but I'm not sure where to start. I'm using RHEL6.4 with Gnome.
Thanks!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
I recently discovered the ! command. I think it's great that !cd ? will match the last command that began with cd ?. However, for ! to be particularly useful to me (for now anyway) it would be nice if there was a tab completion option available (as with the cd command). Does anyone know... (3 Replies)
Discussion started by: x-375HK-x
3 Replies
2. UNIX for Dummies Questions & Answers
Hi,
Is there a way to turn on tab completetion on Solaris 10? (2 Replies)
Discussion started by: annointed3
2 Replies
3. UNIX for Dummies Questions & Answers
Hello all
How do you configure unix terminal to list files as you tab complete. I'm using a unix terminal at work and when i first started tab complete on a folder would list all matches if there were more than one.
eg.
monkey.xml
mon.xml
monkeyboy.xml
in one folder if i cd into... (2 Replies)
Discussion started by: GNUless
2 Replies
4. Shell Programming and Scripting
Is it possible to set up my .cshrc so that a single tab attempts to autocomplete, while a double tab gives a list of all possible options. In other words, I want it to work like bash in this regard.
Thanks! (3 Replies)
Discussion started by: James McMurray
3 Replies
5. Shell Programming and Scripting
I really like tcsh's:
set completion='enhanced'
because it treats underscores and dash signs the same. I don't have to reach for the shift key when trying to complete files that have underscores. As far as I know, there is nothing like this in bash.
Does such a thing exist in bash? If... (2 Replies)
Discussion started by: sarnobat
2 Replies
6. HP-UX
hello,
i'm a linux zealot (fedora), so i know a some about unix. the company i work for uses HP-UX though and there are a few quirks i'd like smooth out by making them work more like my beloved redhat type systems...=)
right now they have all users using ksh and completion is done by hitting... (4 Replies)
Discussion started by: clockworks
4 Replies
7. Shell Programming and Scripting
Is there a way to link a script in my ~/bin with file extension priority for tab completion?
for example, if the script I have could only look at .tex files, and I have 6 files in the same directory with the same name, but different extensions:
index.tex index.dvi index.toc ... etc...
it... (0 Replies)
Discussion started by: pyramation
0 Replies
8. Shell Programming and Scripting
hi guys,
i am new to HP unix , i am doing Solaris , i am just asking is there any thing like "bash" in hp unix including tab completion? (8 Replies)
Discussion started by: dagigg
8 Replies
9. UNIX Desktop Questions & Answers
Hi there,
I ve been using cygwin for some time now without any problems. However, recently I ve mapped a new drive on Windows and are now having problems with TAB completion for awk scripts in cygwin on this newly mapped drive (cygdrive t). I can access and run all files but cygwin doesn't do... (5 Replies)
Discussion started by: Tommes
5 Replies
10. Windows & DOS: Issues & Discussions
Hi,
I am using cygwin on windows machine. Tab completion works as expected in almost all areas, except for when I use tilda (~) to access files/dir under my home dir. When i type 'cd ~/' and hit TAB nothing happens, no completion options are given.
I can type just 'cd' and it will change to... (4 Replies)
Discussion started by: centerback
4 Replies
CLVMD(8) System Manager's Manual CLVMD(8)
NAME
clvmd - cluster LVM daemon
SYNOPSIS
clvmd [-d[<value>]] [-C] [-h] [-E <lock uuid>] [-R] [-S] [-t <timeout>] [-T <start timeout>] [-V]
DESCRIPTION
clvmd is the daemon that distributes LVM metadata updates around a cluster. It must be running on all nodes in the cluster and will give
an error if a node in the cluster does not have this daemon running.
OPTIONS
-d[<value>]
Enable debug logging. Value can be 0, 1 or 2.
0 disables debug logging
1 sends debug logs to stderr (implies -f option)
2 sends debug logs to syslog
If -d is specified without a value then 1 is assumed.
-C Only valid if -d is also specified. Tells all clvmds in a cluster to enable/disable debug logging. Without this switch, only the
local clvmd will change its debug level to that given with -d.
This does not work correctly if specified on the command-line that starts clvmd. If you want to start clvmd and enable cluster-wide
logging then the command needs to be issued twice, eg:
clvmd
clvmd -d2
-t <timeout>
Specifies the timeout for commands to run around the cluster. This should not be so small that commands with many disk updates to do
will fail, so you may need to increase this on systems with very large disk farms. The default is 30 seconds.
-T <start timeout>
Specifies the timeout for clvmd daemon startup. If the daemon does not report that it has started up within this time then the par-
ent command will exit with status of 5. This does NOT mean that clvmd has not started! What it means is that the startup of clvmd
has been delayed for some reason; the most likely cause of this is an inquorate cluster though it could be due to locking latencies
on a cluster with large numbers of logical volumes. If you get the return code of 5 it is usually not necessary to restart clvmd -
it will start as soon as that blockage has cleared. This flag is to allow startup scripts to exit in a timely fashion even if the
cluster is stalled for some reason.
The default is 0 (no timeout) and the value is in seconds. Don't set this too small or you will experience spurious errors. 10 or 20
seconds might be sensible.
This timeout will be ignored if you start clvmd with the -d switch.
-E <lock uuid>
Pass lock uuid to be reacquired exclusively when clvmd is restarted.
-R Tells all the running clvmds in the cluster to reload their device cache and re-read the lvm configuration file. This command should
be run whenever the devices on a cluster system are changed.
-S Tells the running clvmd to exit and reexecute itself, for example at the end of a package upgrade. The new instance is instructed
to reacquire any locks in the same state as they were previously held. (Alternative methods of restarting the daemon have the side
effect of changing exclusive LV locks into shared locks.)
-I Selects the cluster manager to use for locking and internal communications, the available managers will be listed as part of the
'clvmd -h' output. clvmd will use the first cluster manager that succeeds, and it checks them in the order cman,corosync,openais.
As it is quite possible to have (eg) corosync and cman available on the same system you might have to manually specify this option
to override the search.
-V Display the version of the cluster LVM daemon.
ENVIRONMENT VARIABLES
LVM_CLVMD_BINARY
The CLVMD binary to use when clmvd restart is requested. Defaults to /usr/sbin/clvmd.
LVM_BINARY
The LVM2 binary to use. Defaults to /sbin/lvm.
SEE ALSO
lvm(8)
Red Hat Inc LVM TOOLS 2.02.95(2) (2012-03-06) CLVMD(8)