Linux System Administration
Shells
The Command Path
You do want to be careful and (probably) not add the . (dot) directory to your path.
If you want to run a program in your current directory that is not in your path, you would have to type the following:
[guest@localhost ~]$ ./application
If the . (dot) directory is in your path, then all you have to do is type:
[guest@localhost ~]$ application
This may seem convenient, but it could cause a couple of problems:
It can lead to security problems.
A command's behavior can change according to the current directory.
Prev
Page 6
Next