Command-line completion (tab completion) @AverageLinuxUser
Command-line completion (tab completion)  @AverageLinuxUser
Uploaded August 2017 | Updated September 2026, 2 weeks ago
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 youtu.be/giAb4Ckh8BQ

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 youtu.be/osA-ZEEz6Zw


################################################

Support on Patreon: patreon.com/averagelinuxuser

Donate through PayPal: paypal.me/Kryvokhyzha

################################################

More cool Linux stuff at other social media:

Google+ - Best Linux Stuff: plus.google.com/+AverageLinuxUser
Facebook - Top Linux Tips: facebook.com/AverageLinuxUser
Twitter - Daily Linux News: twitter.com/AVGLinuxUser

Website: averagelinuxuser.com
Command-line completion (tab completion)LanguageTool: free and open-source grammar checkerDebian 11 bullseye review (GNOME, KDE, XFCE)Firefox smooth scrollingDebians NEW Installer (Calamares)How to Install Linux Mint without a Bootloader10 reasons to upgrade to Linux Mint 19.1How to enable a SWAP file on LinuxPlasma 5 on Arch Linux  – install & configureHow to set an account image in XFCE.13. Echo command syntaxLinux advantages
Average Linux User |

Command-line completion (tab completion)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER