From ArchWiki
Revision as of 17:59, 13 February 2006 by Kosta (talk | contribs) (some links & a hint)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

bash is your default shell.

Hint: history-search

Usually, pressing the <up> key will cause the last command to be shown, no matter what you typed so far. However, many users find it more practical to only past commands that begin with the current input.

Consider this list of commands:
ls /usr/src/linux-2.6.15-ARCH/kernel/power/Kconfig
man mount

Usually, when typing 'ls' and pressing <up>, your current input will be replaced with man mount. If you are using history seach, only past commands beginning with 'ls' (the current input) will be shown, in this case 'ls /usr/src/linux-2.6.15-ARCH/kernel/power/Kconfig'.

You can enable this mode by adding to /etc/inputrc or your ~/.inputrc

External Resources

Many tutorials are available on the net. Here are some of them:

Quote Tutorial
man page
Advanced Bash Shell Scripting Guide
Completion Guide
Readline Guide