1. When i input Javac, the javac is running. I want to know why I can run Javac.exe not in java folder. If it's in DOS, I can input a PATH to see the route and know: oh, the javac.exe is in PATH, so it can run without in JAVA directory. I need a command similiar with this.
PWD can only show me current directory.
$PATH or CWD don't work.
2. DIR *.TMP/S means: I want to knwo all the file names whose extension name is TMP from current directory. DIR *.TMP/S will show me all the *.TMP file names under the tree.
The real environment is that : I wrote a lot of .tmp when wrote codes. My boss let me delete them all. But I don't know where are they still there. So , i need a statement to show all the *.TMP under my directory.
3. Do you happen to know the equivalent to : PROMPT $P$G in dos. My Linux shows only $. I hope it can show me at least like this:
home/howareyou/TEMP$. When I change the directory, the prompt sign should be changed automatically.