Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ CentOS 6.6 command-line automatic completion     - Linux package management operations Basic entry (Linux)

- Apache site default home page settings (Server)

- PSUADE installation under Linux (Linux)

- Vmstat command Linux Performance Monitoring (Linux)

- Linux kernel RCU (Read Copy Update) lock Brief (Linux)

- Linux console password solution (Programming)

- CentOS of NFS (Server)

- In-depth understanding of capture Node.js garbage collection and memory leaks (Programming)

- Install RAID 6 (Striping double distributed parity) (Linux)

- Linux network cut package is not fully defragment (Linux)

- How do I upgrade to Ubuntu 15.04 (Beta) (Linux)

- Linux system versions organize local root password cracking method (Linux)

- C language preprocessor command (Programming)

- Android gets the global process information and the memory used by the process (Programming)

- About MongoDB query method according to fuzzy field (Database)

- IOwait Linux system monitoring diagnostic tools (Linux)

- Linux Operating System Security Management Experience (Linux)

- CentOS6.7 text installation system (Linux)

- UNIX how to restrict users by IP Telnet (Linux)

- Define and modify strings principle in Python (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:      
 
- The virtual memory (Linux)
- Wireshark basic introduction and learning TCP three-way handshake (Linux)
- AngularJS - Getting Started with Routing (Programming)
- Introduces Linux kernel compilation system and compiler installation (Linux)
- Oracle user password problem (Database)
- How to avoid two Chrome icon appears in ELementary OS Freya (Linux)
- php How to prevent being injected (Linux)
- JBPM6 Tutorial - Fast Fun JBPM table (Linux)
- CentOS install SystemTap-2.6 (Linux)
- SQL Beginner Guide (Database)
- Git 2.5 increase in the working tree, triangle improved workflow performance (Linux)
- Linux operating system set up to effectively prevent ARP attacks (Linux)
- Linux CentOS configuration SVN + SVN hook (Server)
- Scope of variables in C # (Programming)
- High-performance Linux system firewall detailed analysis of double-effect (Linux)
- How to limit network bandwidth usage in Linux (Linux)
- Apache Linux firewall reverse proxy configuration (Linux)
- Bug tracking library after FastJson omitted the decimal point 0 (Programming)
- Linux System Getting Started Learning: Linux in the last command (Linux)
- How common Linux automation tasks (Server)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.