Language Selection

English French German Italian Portuguese Spanish

CLI Magic: Bash complete

Filed under
HowTos

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

Ubuntu-Based BackBox Linux 4.7 Is Out with Kernel 4.4 LTS, Updated Hacking Tools

On December 6, 2016, the developers behind the Ubuntu-based, hacking-oriented BlackBox Linux operating system proudly announced the release of BackBox Linux 4.7. Read more

Doyodo RetroEngine Sigma is a Linux-powered classic video game emulation console

The Nintendo NES Classic is quite an amazing console. True, it is not as powerful as modern game systems like Xbox One and PlayStation 4, but it comes pre-loaded with many classic NES titles. Unfortunately, its strength is also its weakness -- those pre-loaded titles are the only games you can play. You cannot load other games, so you are stuck with what you got. Read more

LibreOffice 5.3 Beta 2 to Land Soon as Third Bug Hunting Event Is Held This Week

Today, December 6, 2016, The Document Foundation, through Italo Vignoli, was proud to announce the upcoming third bug hunting session for the LibreOffice 5.3 open-source office suite. Read more

Solus Packagers Rejoice: Solbuild Is the New, Faster Solus Package Build System

We knew it was destined to happen sooner or later, the evobuild package build system used in the Solus Linux-based operating system for building packages in the .eopkg format is now officially deprecated. Read more