Command-line completion (tab completion)
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 https://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 https://youtu.be/osA-ZEEz6Zw
################################################
Support on Patreon: https://www.patreon.com/averagelinuxuser
Donate through PayPal: https://www.paypal.me/Kryvokhyzha
################################################
More cool Linux stuff at other social media:
Google+ - Best Linux Stuff: https://plus.google.com/+AverageLinuxUser
Facebook - Top Linux Tips: https://www.facebook.com/AverageLinuxUser
Twitter - Daily Linux News: http://twitter.com/AVGLinuxUser
Website: http://averagelinuxuser.com/
Видео Command-line completion (tab completion) канала Average Linux User
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 https://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 https://youtu.be/osA-ZEEz6Zw
################################################
Support on Patreon: https://www.patreon.com/averagelinuxuser
Donate through PayPal: https://www.paypal.me/Kryvokhyzha
################################################
More cool Linux stuff at other social media:
Google+ - Best Linux Stuff: https://plus.google.com/+AverageLinuxUser
Facebook - Top Linux Tips: https://www.facebook.com/AverageLinuxUser
Twitter - Daily Linux News: http://twitter.com/AVGLinuxUser
Website: http://averagelinuxuser.com/
Видео Command-line completion (tab completion) канала Average Linux User
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![10 Essential Things to Do After Installing Ubuntu 23.04 Lunar Lobster](https://i.ytimg.com/vi/n265uqEqCIg/default.jpg)
![Ubuntu 23.04 review: Better than I expected 😲](https://i.ytimg.com/vi/EFzRpN0_wVM/default.jpg)
![Configure One-Time Password on Ubuntu (login, sudo, SSH)](https://i.ytimg.com/vi/cNj9K1V2qoo/default.jpg)
![Linux advantages](https://i.ytimg.com/vi/mJEWPqHXNzs/default.jpg)
![Linux disadvantages](https://i.ytimg.com/vi/iSU3Qm9EUvE/default.jpg)
![Top 10 Linux Productivity Tools](https://i.ytimg.com/vi/G8qtLyLHQeE/default.jpg)
![10 Things to Do After Installing Arch Linux (2023)](https://i.ytimg.com/vi/V7ABBlXcn0g/default.jpg)
![10 Best Linux Themes](https://i.ytimg.com/vi/vGyaJmJ48UQ/default.jpg)
![How to install Arch Linux in 2023](https://i.ytimg.com/vi/_ZYuzjH-ZIA/default.jpg)
![Install Arch Linux easy (Official Guided Installer)](https://i.ytimg.com/vi/VSOshZiUkl0/default.jpg)
![20 Things to Do After Installing Pop!_OS 22.04](https://i.ytimg.com/vi/Pdv8MmEo104/default.jpg)
![Ubuntu Remote Desktop Access with ThinLinc](https://i.ytimg.com/vi/9prhMCiURyg/default.jpg)
![Router port forwarding for remote desktop](https://i.ytimg.com/vi/UVQAK7iOubA/default.jpg)
![How to SSH into VirtualBox machine](https://i.ytimg.com/vi/rhFLfwZzlGA/default.jpg)
![How to configure VPN on Linux](https://i.ytimg.com/vi/ALTYHTB3VnQ/default.jpg)
![15 Things to Do After Installing Ubuntu 22.04](https://i.ytimg.com/vi/Cu4hrOYRt0c/default.jpg)
![Ubuntu 22.04: Beautiful Outside, Ugly Inside!](https://i.ytimg.com/vi/4OsMNrYAXSI/default.jpg)
![How to limit network bandwidth in Linux](https://i.ytimg.com/vi/EoiSWGS0L94/default.jpg)
![Linux partitioning recommendations](https://i.ytimg.com/vi/Wc4GjV_Ahb8/default.jpg)
![20 Essential Things to Do After Installing Debian 11](https://i.ytimg.com/vi/VGvbn9Bn-gI/default.jpg)
![Better Microsoft Office fonts compatibility on Linux](https://i.ytimg.com/vi/Jr5BNNcb64E/default.jpg)