Timeline for Why "man CMD" shows nothing?
Current License: CC BY-SA 3.0
22 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 26, 2012 at 14:38 | answer | added | Ed Murphy | timeline score: -2 | |
| Mar 16, 2012 at 14:25 | vote | accept | xanpeng | ||
| Mar 16, 2012 at 8:22 | vote | accept | xanpeng | ||
| Mar 16, 2012 at 8:23 | |||||
| Mar 15, 2012 at 6:00 | history | edited | xanpeng | CC BY-SA 3.0 | Removed "answer" section. |
| Mar 15, 2012 at 5:59 | answer | added | xanpeng | timeline score: 3 | |
| Mar 15, 2012 at 5:55 | comment | added | Keith Thompson | You should post the answer as an answer, not edit it into the question. | |
| Mar 15, 2012 at 5:50 | history | edited | xanpeng | CC BY-SA 3.0 | Added more information and solved the problem. |
| Mar 15, 2012 at 5:14 | comment | added | xanpeng | @KeithThompson: Thanks. type -a man shows that man program is the correct one and /usr/bin/man ls shows nothing as before. But I solved the problem in another way, I edit the question. :) | |
| Mar 15, 2012 at 5:12 | comment | added | xanpeng | @Mat: Thanks. alias man outputs "-bash: alias: man: not found" and which man outputs "/usr/bin/man", which means that man program is correct. I solved the problem, please see my edit for details. | |
| Mar 14, 2012 at 23:11 | history | edited | Gilles 'SO- stop being evil' | edited tags | |
| Mar 14, 2012 at 16:55 | comment | added | Keith Thompson | Try these: type -a man, /usr/bin/man ls | |
| Mar 14, 2012 at 11:53 | comment | added | Mat | Do you have man aliased? What do alias man and which man tell you? | |
| Mar 14, 2012 at 11:39 | history | tweeted | twitter.com/#!/StackUnix/status/179894563178160128 | ||
| Mar 14, 2012 at 9:31 | comment | added | xanpeng | @Coren: No, nothing showed, and on status bar displayed "Manual page ls.1.gz line ?/? (END)" | |
| Mar 14, 2012 at 9:08 | comment | added | Coren | you can try to display your ls manual with this command : man -l /usr/share/man/man1/ls.1.gz. Is this working for you ? | |
| Mar 14, 2012 at 9:05 | history | edited | Coren | edited tags | |
| Mar 14, 2012 at 7:40 | comment | added | xanpeng | @KeithThompson: Thanks for your detailed reply. (1) man 1 ls, man -s 1 ls and man 1p ls show nothing ---- blank page with only "Manual page ls(1p) line ?/? (END)" on the status bar. (2) zcat /usr/share/man/man1/ls.1.gz | head acts just like you said. (3) zcat /usr/share/man/man1/ls.1.gz | nroff -man | less shows a lot, which looks like normal "man ls" output, but is kind of ill-formed. For example "ESC[1mNAMEESC[0m ls - list directory contents" and "ESC[1mSYNOPSISESC[0m ESC[1mls ESC[22m[ESC[4mOPTIONESC[24m]... [ESC[4mFILEESC[24m]..." | |
| Mar 14, 2012 at 7:23 | comment | added | Keith Thompson | Also try man 1p ls (that's digit 1 letter p). | |
| Mar 14, 2012 at 7:22 | comment | added | Keith Thompson | Failed how exactly? zcat /usr/share/man/man1/ls.1.gz | head should show you 10 lines of text; one of the lines should be something similar to .TH LS "1" "February 2011" "GNU coreutils 8.5" "User Commands". And try zcat /usr/share/man/man1/ls.1.gz | nroff -man | less. | |
| Mar 14, 2012 at 7:13 | comment | added | xanpeng | @KeithThompson: These two commands failed too. I'm using SLES 11. | |
| Mar 14, 2012 at 7:07 | comment | added | Keith Thompson | What system are you using? Try man 1 ls or man -s 1 ls. | |
| Mar 14, 2012 at 6:58 | history | asked | xanpeng | CC BY-SA 3.0 |