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!
-howru(How are you?);
2001-3-25
(#36942@0)
-
1. export PS1='$PWD #' or export PS1='$PWD >'
2. ls -R or ls -r (I am not sure)
-www(www);
2001-3-25
(#36944@0)
-
thank you!
-howru(How are you?);
2001-3-25
(#36981@0)
-
The second command can be "find . " or just "du". if you want more detail, you can use this "find . -exec ls -l {} \;"
-pasu(InTheSky);
2001-3-25
(#36958@0)
-
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).
-howru(How are you?);
2001-3-25
(#36982@0)
-
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.
-pasu(InTheSky);
2001-3-25
(#36984@0)