Skip to content
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

Merged
merged 2 commits into from
Dec 1, 2017
Merged

whereis: add page #1708

merged 2 commits into from
Dec 1, 2017

Conversation

awaitlink
Copy link
Contributor

Add whereis command page.

@awaitlink awaitlink mentioned this pull request Nov 29, 2017
@vojta001
Copy link

I would also provide an example without any switch, like man ls, because it is IMHO the most commonly used form.

@sbrl
Copy link
Member

sbrl commented Nov 30, 2017

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:
Copy link
Member

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 ?

Copy link
Contributor Author

@awaitlink awaitlink Nov 30, 2017

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.

Copy link
Member

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.

@agnivade agnivade added the new command Issues requesting creation of a new page. label Dec 1, 2017
@agnivade agnivade merged commit 9bd2d13 into tldr-pages:master Dec 1, 2017
@awaitlink awaitlink deleted the patch-1 branch December 1, 2017 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new command Issues requesting creation of a new page.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants