Quote:
Originally posted by PenguinPwrdBox When you enter a command, without parameters, it will (depending on the command) allow you to enter those parameters after[...]
|
Not quite that. Actually, "cd" without parameters is perfectly valid: it will go to the home-directory.
What's happening here is that \ is used by bash (the shell) to "escape" characters, which means taking from those characters their special meaning, so that they become normal characters.
For bash:
- $ is for introducing a variable, such as $HOME. \$ is simply a "dollar" sign.
- * is for expanding to any number of characters, matched against files in current directory. \* is simply a "star" sign.
- ? is for expanding to one single character, matched against files in current directory. \? is simply a question mark.
- ... and so on...
- And carriage-return is for ending the current command-line. \<CR> is simply a carriage-return character, that is a "blank" (or separator) from the shell's point of view. It just means that you're not done with editing the current command-line.
Yves.