×

Loading...
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务

thank you. Maybe my description is not clear. The problem is that I can't find such commands. 1.pwd can only show current directory. I'd like to know .... 2. ls -l * can only show me the files in current directory....

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.

Thank you!
Report

Replies, comments and Discussions:

  • 工作学习 / IT技术讨论 / So sorry to ask simple about UNIX. It's emergency, sorry. In UNIX, how to get the same results similar with::1)PATH in DOS. 2)dir *.tmp/s in DOS 3)Special meaning to those which there is a dot before the filename( .tplink.java)?
    So sorry to ask some simple questions about UNIX. I think I should read some books after this emergency time. In UNIX, how to get the same results similar with:: (1)PATH in DOS. (2)dir *.tmp/s in DOS(searching the whole directory) (3)Are there some special meaning to those which there is a dot before the filename(for example .tplink.java). The dot before the filename. tks.
    • 1)$PATH or pwd or cwd 2) ls -l *(DOS3? are you kidding me!) if you want to list the dir contents. why not check out man page? or at least get any UNIX beginner site or faq on line.
      • thank you. Maybe my description is not clear. The problem is that I can't find such commands. 1.pwd can only show current directory. I'd like to know .... 2. ls -l * can only show me the files in current directory....
        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.

        Thank you!
        • 1) echo $PATH 2) find / -name "*.tmp" -print
    • 3)not really.