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

WTFTW: A Tiling Window Manager Written In Rust

The WTFTW project is an X tiling window manager written in Rust. The WTFTW name is short for Window Tiling For The Win. WTFTW is written against the latest Rust nightly code, with Rust 1.0 approaching next year. This tiling window manager can be easily tested in Xnest or Xephyr. Read more

Red Hat credits Q3 earnings win to cloud, big data strategies

Red Hat's CFO boasted the software company has achieved sequential revenue growth every quarter for the last 51 straight quarters. Read more

WordPress 4.1 and distraction free writing mode

WordPress 4.1 is out and one of its new features is a revised “distraction free writing mode.” I seem to remember that it had something like this before, but it was not as well implemented as it is in WordPress 4.1. Now, when you push the distraction free writing mode button, everything else fades away except what you need to write your post. Read more

today's howtos