-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
whereis: add page #1708
whereis: add page #1708
Conversation
I would also provide an example without any switch, like |
Looks ok to me! Can't figure out how to approve it in octodroid, so this comment will have to do |
|
||
`whereis -bm {{ls}}` | ||
|
||
- Locate source of gcc and man pages for git: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Somehow -s
doesn't seem to work on my system. It works without it.
20:49:51-agniva-~/play/tldr-bot$whereis -s gcc -m git
gcc:
git: /usr/share/man/man1/git.1.gz
20:50:04-agniva-~/play/tldr-bot$whereis -s gcc
gcc:
20:50:09-agniva-~/play/tldr-bot$whereis gcc
gcc: /usr/bin/gcc /usr/lib/gcc /home/linuxbrew/.linuxbrew/bin/gcc /usr/share/man/man1/gcc.1.gz
Any idea why ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason is very simple. You don't have source of gcc
on your system. Without the switches it searches for binary, source, and manual page files
and therefore looks fine because you have the binary and man pages present for gcc
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see. I thought that /usr/lib/gcc
was the source. My bad, should have checked.
Add
whereis
command page.