I'm still fairly new to this, so if I err in any way, do correct me...
In Slackware, the environment is set on startup according to the /etc/profile file. On my system the file contains comments and such to assist in modifying.
I was also reading regarding environment variables. There is a "set" command which sets variables, but unlike in DOS, it only sets, as I understand, variables, but not environment. Explanation: A program or script can store values in variables, but programs that are executed are not given these variables. In order to pass information on to programs, the information must be placed in the environment. To do this you use "export".
To view the current PATH setting:
Echo writes a string to the display. The dollar sign causes the contents of PATH to be substituted into the command tail of "echo", works also with variables. Say you want to append something...
Again, the $PATH represents and is substituted with the current PATH. The colon is used to separate individual directories, and [string] is a directory you want to append. If you modify the /etc/profile (if you have one) you may be able to add the directory where the PATH gets set in the first place, or you might add a line as above some where after where the PATH gets set.
Regarding the ".exe" you've seen in dos/win. Linux doesn't use an extension to designate executables, but what's called "permissions" instead. And not only can a file be designated executable, but which users can execute it. "chmod" is the program used to modify the permissions, and closely related, chattr modifies attributes.
Last edited by TenEighty; 11-07-2004 at 12:52 AM.