Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 09-16-2007, 07:16 AM   #1
LQ Newbie
Registered: Feb 2007
Posts: 6

Rep: Reputation: 0
"info ls" shows man page instead of info page

I've just installed Slackware 12.0

I tried to find something about this issue on this forum and with google but I could not find anything.

In some distro (for example Fedora) the command "ls info" open the info page of ls while in Slackware open the man page of the command indside the info reader.

The ls info documentation is installed since I can view it if I open the coreutils info page and navigate through the menus.

It's not a big problem but I would like to fix it.
Old 09-17-2007, 02:53 AM   #2
LQ Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
'man ls' works.
Old 09-17-2007, 03:06 AM   #3
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
I'm not sure if it's a default behavior everywhre, but if 'info' (btw. the command is 'info ls', not 'ls info'..) can't find or access the info page, it probably shows the man page instead. This happens to loads of pages, and is one reason why I just prefer using 'man'. If you are certain that the info page that you should be seeing with 'info ls' is there, but you can't view it, start finding out why. Is it in the correct place, and does it have correct permissions?

Sorry I can't help much more with this, but like I said, I don't use info pages that much..I don't think they're as good as man-pages, the user interface, links and all just make it more difficult to see the document as a whole. Anyway.
Old 09-17-2007, 03:07 AM   #4
Registered: Aug 2005
Posts: 68

Rep: Reputation: 33
The original poster is complaining that "info ls" shows the man page instead of the info page. How does "man ls" help in this case?

It seems odd to me that the OP can navigate to the correct page but it doesn't find it when invoked from the command line.

Last edited by Vrajgh; 09-17-2007 at 03:08 AM.
Old 09-17-2007, 03:12 AM   #5
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Does it work with
info -f /path/to/the/infofile
It should..if that works, but just
info infofile
doesn't (where 'infofile' is this semi-missing file), then it could probably be that the directory where the file is isn't in INFOPATH or something. You could then try to use
info -d /path/to/the/
to add /path/to/the/ directory to INFOPATH (the directory where this 'missing' infopage is in).

man info
Old 09-17-2007, 07:45 AM   #6
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.2
Posts: 7,809
Blog Entries: 58

Rep: Reputation: Disabled
Don't know if this is relevant, but I had to edit the info/dir file, replacing "fileutils, "sh-utils", and "textutils" entries with "coreutils".
Old 09-17-2007, 03:48 PM   #7
Registered: Sep 2007
Location: UK
Distribution: Slackware 14.1
Posts: 73

Rep: Reputation: 24
Looks like the /usr/info/dir file installed from the texinfo package is out of date. Looking at the source for this package the slackbuild script copies a dir file dated 2002. I rebuilt my dir file as follows.

cd /usr/info
rm dir
for file in $(ls *gz); do install-info $file dir; done

I've sent Pat an email so it will hopefully be fixed in the next release.
Old 09-17-2007, 05:31 PM   #8
Registered: Jan 2005
Location: Summer Midwest USA, Central Illinois, Winter Central Florida
Distribution: SlackwareŽ
Posts: 13,435
Blog Entries: 31

Rep: Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606

Do a 'man info';

excerpt from 'man info';

INFO(1) User Commands INFO(1)

info - read Info documents

info [OPTION]... [MENU-ITEM...]

Read documentation in Info format. <<<<<<here
man - format and display the on-line manual pages
If you do a 'info man' read the top portion. Another way to see the format difference for the documentation. The idea behind 'info' is to give the user the means to work within the documentation. 'Man' just formats and displays the man pages.
Old 09-21-2007, 08:47 PM   #9
LQ Newbie
Registered: Feb 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks everybody for the help.
I could solve the problem with the suggestions of vulcan59 and brianL.

I also found useful the explication of the /usr/info/dir file in the following section of the Texinfo manual

To understand how Texinfo works I read this article, even if it's quite outdated


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
difference between "man" and "info" gexecuter Linux - Newbie 17 09-26-2007 03:17 PM
"Man page"-ERROR preeth45 Slackware 3 03-06-2007 07:33 AM
info <program> just gives me the man page Robhogg Ubuntu 1 10-17-2006 01:25 PM
Man Page "Standards" or Writing Guides? TGWDNGHN Programming 3 11-25-2005 08:54 PM
my web browser "mozilla fire fox" isn't rendering the page, rather opening the page amolgupta Linux - Software 2 07-26-2005 12:41 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:20 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration