×

Loading...

Topic

This topic has been archived. It cannot be replied.
  • 工作学习 / IT技术讨论 / UNIX. 1. need the command similar as PROMPT $P$G. That means my command line looks like: $Dou/dousub/dousubsub> 2. I want to see all the directory in my home. like the command TREE/B in Dos. thank you!
    • 1. export PS1='$PWD #' or export PS1='$PWD >' 2. ls -R or ls -r (I am not sure)
      • thank you!
    • The second command can be "find . " or just "du". if you want more detail, you can use this "find . -exec ls -l {} \;"
      • thank you! one more help: when I input "du /", there are hundreds of thousands of the directory shown page after page.... How can I interupt it? In DOS, I can use CTRL-C or CTRL-BREAK. What can I do in UNIX? (I use telnet to UNIX from Windows).
        • It's terrible to use "du /". But if you have to do that, you can try "du / | more". Try to read some fundamental book of Unix provided on web. You can find the answer you want with ease.