This is a read-only archive. Find the latest Linux articles, documentation, and answers at the new!


Posted by: Administrator on May 10, 2006 01:14 AM
"As root, edit the<nobr> <wbr></nobr>/etc/bash.bashrc file"
<nobr> <wbr></nobr>/etc/bash.bashrc is not a standard file, and will not be found on many distros.

The bash_completion script may not be in<nobr> <wbr></nobr>/etc; it may be in<nobr> <wbr></nobr>/etc/profile.d, it may be broken into several files, or it may be absent altogether.

"The caret wildcard excludes files. mv *[^.php]<nobr> <wbr></nobr>../ would move all files to the parent directory, exculding those with<nobr> <wbr></nobr>.php extension."

This is incorrect; mv *[^.php]<nobr> <wbr></nobr>../ will move all files which do not end in '.', 'p', or 'h'. The second 'p' is redundant. The square brackets contain a list of characters that will match (or not match if ^ is used) a single character, not a string.


Return to CLI Magic: Bash complete