I am a linux newbie. Is there any other cool techniques like the TAB completion in the gnome terminal? I am using the bash shell.
feedback
|
|
The terminal is just a vehicle for interacting with programs that use that kind of an interface. It's usually called 'the command line', and a really great essay by Neal Stephenson about it as a cultural artifact titled "In the Beginning was the Command Line". The terminal program itself has some nifty features. But those are for things like using international fonts and character sets and various options for exactly what things should look like and stuff like that. The feature of TAB completion is implemented by a program that uses the terminal program to present its user interface to you. That program is generally called "the shell". The most common default shell on Linux systems is
Some of the more useful things to know about are Another useful thing to know is that for many commands you can type | |||
|
feedback
|
|
if you want some bash key combinations, I think all of these comes from readline:
| |||
|
feedback
|
|
As the above message says, the 'power usage' you mention is part of the bash shell, not gnome-terminal. Strictly as a terminal app, gnome-terminal is actually (intentionally) does not include the bells and whistles of Konsole. What are you trying to ask? Are you asking for all Linux power tips? That will take years to read. Or are you asking specifically about bash/terminal power tips? Also years, but maybe somewhat fewer. Bash power tips that I personally use: If you haven't discovered aliases, you'll like them. A lot of people like to trick out their prompt. For an overload of info, check out http://www.yolinux.com/HOWTO/Bash-Prompt-HOWTO.html. The tab completion is just a subset of very powerful command completion. Some are builtin, but you can program your own. A very simple but surprisingly useful snippet would be:
Which would make cd, pushd, and rmdir only use directories on completion, and tab completion for printenv would show all exported environment variables. There are a bunch of examples at http://www.caliban.org/bash/ This is an intentionally simple set to get you going, there's a lot more you can do. | |||
|
feedback
|
|
Here are some good links for learning some cool things you can do with the command line. http://www.oreillynet.com/onlamp/blog/2005/04/bash_tricks_from_the_developer.html http://www.linuxtutorialblog.com/post/tutorial-the-best-tips-tricks-for-bash | |||
|
feedback
|