Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-24-2007, 05:32 AM   #1
LQ Newbie
Registered: Jul 2007
Posts: 1

Rep: Reputation: 0
man command not working.....used to work before!!!


I am a newbie, I used the man command frequently but since the day I tried the installation of a software , it shows "No manual entry for ls" for any command that I give.


Why is this happening?


Old 09-24-2007, 05:58 AM   #2
LQ Newbie
Registered: Feb 2007
Location: Spain
Distribution: debian etch
Posts: 13

Rep: Reputation: 0
in my installation I have no MANPATH variable defined (echo $MANPATH reports nothing), so this variable is not really
needed. Do you have a file like /etc/manpath.config ?
What is the output of the command 'manpath' ? (don't know if it existe on your installation)
Have you tried to give the path to any man page manually (with the -M option), something like:
man -M /usr/share/man/en/ ls
(the directory must contain a file like ls.1.gz, of course)
Depending on your distribution, have you tried to check the installation of your man command and the corresponding man
pages (maybe something is wrong with them...)
Hope that helps.

Old 09-24-2007, 08:42 AM   #3
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
If you have locate installed, here's a handy little command to generate a MANPATH statement for you:

echo -n export MANPATH=\" ; locate -r '/man$' | while read d; do [ -d "$d" ] && echo -n $d:; done ; echo \"
You can copy-paste the output of that command to your .bashrc or .profile or whatever is appropriate for your shell, and then when you next log in you will have the MANPATH set automatically.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
man command missing olin Slackware 6 09-20-2007 03:35 PM
The command man dont work Mago de Oz AIX 3 05-09-2006 03:44 PM
man command - (END) michshelly Linux - Newbie 6 04-27-2006 03:04 AM
How do i get out of the man command? caa1980 Linux - Software 4 08-13-2004 09:12 PM
Man command not working chunkymunky Linux - Newbie 2 12-02-2003 03:12 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:50 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration