Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ CentOS 6.6 command-line automatic completion     - Python MySQL database connection (Database)

- OGG-01496 OGG-01031 Error Resolution (Database)

- Linux tool curl and wget advanced use (Linux)

- SecureCRT 7.0 Log Ubuntu 12.04 server via SSH service under Vmware (Server)

- How to track performance issues when using the Unity Game Development Android (Programming)

- PCM audio under Linux (Linux)

- Ubuntu 14.04 running ASP.NET Configuration Mono + Jexus (Server)

- To update Python version under CentOS system (Linux)

- Linux server remote user to obtain root privileges prevention (Linux)

- Three kinds of binary tree traversal recursive and iterative solution (Programming)

- How do you change the default browser and Email Client in Ubuntu (Linux)

- Two network security scanning tools under ubuntu (Linux)

- Deployment Kubernetes manage Docker example cluster on Ubuntu (Server)

- Ubuntu 14.04 installed VirtualBox 4.3 appears vboxdrv: Unknown symbol mcount (Linux)

- Use Redis as time-series database: why and how (Database)

- LVS + Keepalived the DR mode (Server)

- Forgot Linux root password (Linux)

- ARM Linux system call (Linux)

- Revised OpenJDK Java Memory Model (Programming)

- Go build the locale under Windows (Linux)

  CentOS 6.6 command-line automatic completion
  Add Date : 2018-11-21      
  Ubuntu system with co-workers, the auto-complete function is good, but my CentOS 6.6 system to use sudo when it does not automatically fill the whole, git command nor completion.

Internet search some solutions are as follows.

A git can not make up the whole issue

Download git source

 $ Git clone https://www.kernel.org/pub/scm/git/

Find the git-completion.bash files are copied to ~ / directory

$ Sudo cp contrib / completion / git-completion.bash ~ / .git-completion.bash edit / etc / bashrc file is added at the end: source /home/yourname/.git-completion.bash


$ Sudo cp contrib / completion / git-completion.bash /etc/bash_completion.d/source /etc/bash_completion.d/git-completion.bash
Another way to get the git-completion.bash:

 sudo find / -name 'git-completion *'

So Linux file system in which there is a direct copy of it.

Two completion. Here that complement, not just the default path to completion with the file name completion feature, but the completion of the command parameters, with this after completion, in Bash which can complement almost any possible completion of Completion.

The default RedHat system is not installed, you need to install a bash-completion, it can be achieved. When you sudo yum install xxx, these words any of you are complementary input to yum ins and then press the Tab key and press Tab when you can complement install.

Before you install, execute ls in /etc/bash_completion.d/ directory:

git rpmlint
createrepo.bash gvfs-bash-completion.sh scl.bash
dbus-bash-completion.sh perf subversion
dkms pk-completion.bash yum.bash
gdbus-bash-completion.sh rpmdevtools.bash-completion yum-utils.bash


sudo yum install bash-completion

In view /etc/bash_completion.d/ the following files:

ant gvfs-bash-completion.sh rcs
autoconf gzip redefine_filedir
automake iconv rfkill
bash-builtins ifupdown rpcdebug
bind-utils info rpm
brctl iproute2 rpmdevtools.bash-completion
bumblebee iptables rpmlint
bzip2 java rsync
chkconfig lsof samba
configure lvm scl.bash
coreutils lzma service
cpan2dist make sh
cpio man shadow
createrepo.bash mdadm smartctl
crontab minicom sqlite3
cryptsetup module-init-tools ssh
cups mysqladmin strace
cvs net-tools subversion
dbus-bash-completion.sh nmap tar
dd ntpdate tcpdump
dhclient open-iscsi util-linux
dkms openssl wireless-tools
dvd + rw-tools perf wodim
e2fsprogs perl wvdial
findutils pk-completion.bash xmllint
fuse pkg-config xmlwf
gcc pm-utils xorg-x11-server-utils
gdb postfix xsltproc
gdbus-bash-completion.sh postgresql xz
genisoimage procps yp-tools
getent python yum.bash
git qdbus yum-utils.bash
gpg2 quota-tools

This time it can realize the auto-completion function.
- How do I upgrade from Ubuntu 15.04 to Ubuntu 15.10 (Linux)
- Basic Tutorial: Linux novice should know 26 commands (Linux)
- To delete the directory and all specified files under the Mac (Linux)
- Oracle table space create large files (Database)
- How screenshots from the Linux command line (Linux)
- Oracle RMAN-06023 and ORA-19693 errors (Database)
- Mac OS X Server installation and application (Linux)
- Getting CentOS Learning Notes (Linux)
- Share useful bash aliases and functions (Linux)
- Tmux create the perfect terminal management tool under CentOS (Linux)
- tcpdump Linux system security tools (Linux)
- Spring Boot + Nginx + Tomcat + SSL configuration notes (Server)
- Broadcom transplanted to OpenWrt summary (Programming)
- CentOS 7 source code to compile and install Nginx process record (Server)
- Linux system Passwd file detailed analysis (Linux)
- Linux operating system Start Tutorial: Xmanager Remote Access Linux graphical interface (Linux)
- Ubuntu download install and configure Plank Dock (Linux)
- MySQL 5.5 on master-slave copy filter (Database)
- Linux installation notes under GAMIT (Linux)
- mysql_config_editor encryption and decryption of the new features of MySQL realization (Database)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.