roTTer said:
Also one more thing in the terminal window itself, the keyboard as the stdinput, when pressing Esc twice it prints all the hidden files(starts with a period), or atleast that's what I think. What does it do.
That's a shell thing. Depending on the terminal program you use, and the shell that you're running, it may be the "tab" key or the "esc" key, or both. It's a feature of auto-complete.
First off, what it does is handily tries to auto-complete the thing you're typing. So if you wanted to type some crazy command like:
cd /home/rotter/someenormouslyhugefilenamethatIdrathernottype/
You can instead type:
cd /home/rotter/some(tab)[/color]
And it ought to figure out that there's only ONE possible solution to what you're typing-- so it will auto-complete it for you. Or, it will auto-complete as much as it can figure out (which is often most of it).
Now, sometimes, hitting (tab) or (esc) doesn't do the job, because it just-so-happens that there are MULTIPLE things that match what you're currently typing. For instance, if there were also a file called:
/home/rotter/someotherfile
Then typing (tab) or (esc) wouldn't help you to auto-complete, because there are two matches. So! If you hit the (tab) or (esc) a
second time, it will tell you all the possible completions that there are. So it might go something like this:
> cd /home/rotter/some(tab)(tab)[/color]
someenormouslyhugefilenamethatIdrathernottype
someotherfile
> cd /home/rotter/some
Then, if you hit "e", and then (tab) again, it would auto-complete the whole thing.
There's also an extra caveat, again, depending on the shell you use. If the thing you're typing is at the BEGINNING of the command, it will recognize this as a command. So it will only auto-complete filenames that are *executable* (like directories). This means it will look in your current $PATH for any possible matches. If you're typing something in the middle, or near the end of your command, it will auto-complete any file types, regardless of the permissions, but it will NOT search the entirety of the $PATH-- just the current directory, or directory you started typing.
DaveE