Language Selection

English French German Italian Portuguese Spanish

CLI Magic: Bash complete

Filed under

The auto complete feature of the Bourne Again SHell makes bash one of the most loved and newbie-friendly Linux shells. Just by pressing the Tab key you can complete commands and filenames. Press the Tab key twice and all files in the directory get displayed. But you can do more with autocomplete -- such as associating file types with applications, and automatically designating whether you're looking for directories, text, or MP3 files. With simple commands such as complete and the use of Escape sequences, you can save time and have fun on the command line.

You can use the dollar sign ($), tilde (~), and at (Hypnotized characters along with the Tab key to get quick results in autocomplete.

For instance, if you want to switch to the testing subdirectory of your home directory, you can either type cd /ho[Tab]/tes[Tab] to get there, or use the tilde -- cd ~tes[Tab].

Full Story.

More in Tux Machines

Debian-Based Parsix GNU/Linux 8.15 "Nev" Gets First Test Build, Ships GNOME 3.22

Today, October 21, 2016, the developers of the Debian-based Parsix GNU/Linux operating system proudly announced the availability for download of the first test build of the upcoming Parsix GNU/Linux 8.15 "Nev" release. Read more

Open source where possible in Polish Gdańsk

The city of Gdańsk, Poland’s sixth largest city, is using open source software applications where possible. Open source is called an ‘important element’ in the Operational Programmes, made public in August. This document describes the tasks and activities set out by the city to achieve the goals it defined in the Gdańsk 2030 Plus Development Strategy. Read more

Fedora 26 Linux to Retire the Synaptics Driver for a Better Touchpad Experience

Today, October 20, 2016, Red Hat's Fedora Program Manager Jan Kurik informed the Fedora Linux community about an upcoming system-wide change proposal for the Fedora 26 release. Read more

Meet Remix IO, All-in-One Android 7 Nougat-Powered PC, TV Box & Gaming Console

Today, October 20, 2016, Softpedia was informed by Jide Technology, the team behind the popular Android-x86-based Remix OS operating system, about an upcoming device called Remix IO. Read more