Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ CentOS 6.6 command-line automatic completion     - Limit the use of the request being Nginx Flood attack (Linux)

- QBit development of micro-services (Server)

- Basic data types JavaScript type system and the type of packaging (Programming)

- Hadoop namenode do NFS disaster recovery (Server)

- Linux Operating System Security Study (Linux)

- CentOS7 set boot directly into the command line interface (Linux)

- Linux kernel log --dmesg (Linux)

- Doubly linked list basic operations (Linux)

- What is Java EE (Programming)

- in no backup ex: error: Xin Tourou ah backup child process has Singles DAT / US person / bin / in no backup ex (Database)

- Oracle 11g new features and associated SQL TUNING (Database)

- Java8 Lambda expressions and flow operations (Programming)

- Linux productivity tools and tips (Linux)

- To read the Linux ext3 / ext4 format partitions under Windows system software (Linux)

- MySQL query plan key_len know all (Database)

- Zabbix monitoring different versions of RAID installation and monitoring and MySQL master-slave monitor (Server)

- Linux group account deletion, and other related operations (Linux)

- Sorting algorithm of dichotomy (binary) insertion sort algorithm (Programming)

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

- Android application simulates the phone keypad (Programming)

 
         
  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

or

$ 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 *'
/usr/share/doc/git-1.7.1/contrib/completion/git-completion.bash

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

installation:

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.
     
         
       
         
  More:      
 
- 64-bit Windows Server 2012 R2 install Oracle 10g Second Edition (Database)
- Quick Install software RAID on Linux (Linux)
- sed and awk in shell usage and some examples (Linux)
- CentOS 7.0 Experience with previous versions (Linux)
- Iscsi package is installed on RHEL 6.3 x86-64 systems (Linux)
- Share useful bash aliases and functions (Linux)
- Python extension module Ganglia 3.1.x (Linux)
- iostat command Detailed (Linux)
- UNIX file permissions in the "set user ID bit" (Linux)
- Linux support exFAT and NTFS (Linux)
- Use rfkill soft-switching and Bluetooth wireless capabilities in Linux (Linux)
- Everyone should know something about TCP (Linux)
- Java String type time compare the size (Programming)
- The Java way to stop a thread of execution (Programming)
- Remote installation of Net-SNMP whole process (Linux)
- Enterprise Hadoop cluster architecture - DNS installation (Server)
- grep, egrep and regular expressions (Linux)
- Linux System Tutorial: Fix ImportError: No module named wxversion error (Linux)
- MyCAT log analysis (Database)
- Docker container plaintext password problem-solving way (Server)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.