What is the command-line completion (also know as tab completion)?
When you type a command you can press the Tab key, and the terminal will complete that command. It simplifies the use of the command line a lot. In this video you will learn how to use the tab completion and how to enable it.
Also, watch how to enable colors in terminal [ Ссылка ]
If tab completion doesn't work for sudo, edit the ~/.bashrc file by addin this line to it:
complete -cf sudo
Or install the bash-completion package.
In Arch Linux:
sudo pacman -S bash-completion
In Ubuntu, Debian and Debian-based distros:
sudo apt install bash-completion
In Debian and Debian-based distro, bash-completion sometimes doesn’t work. You need to check your .bashrc file.
It should have this content there
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
If it doesn’t have it, add it at the end of the file.
To reinstall:
sudo apt install bash-completion --reinstall
If you liked the Linux Mint theme, watch this video to install this theme [ Ссылка ]
################################################
Support on Patreon: [ Ссылка ]
Donate through PayPal: [ Ссылка ]
################################################
More cool Linux stuff at other social media:
Google+ - Best Linux Stuff: [ Ссылка ]
Facebook - Top Linux Tips: [ Ссылка ]
Twitter - Daily Linux News: [ Ссылка ]
Website: [ Ссылка ]
Command-line completion (tab completion)
Теги
command line completionCommand-line completioncommand line completion linuxcommand-line completion linuxtab complete linuxterminal tab completionlinux tab autocompletetab completion arch linuxenable tab completion linuxtab complete not working linuxtab autocomplete not working linuxlinux tab completion not workinglinux bash tab completion not workingbash-completionarch linux bash tab completionarch linux sudo tab completionaluAverage Linux User