Sponsored Content
Full Discussion: whereis ls
Top Forums UNIX for Dummies Questions & Answers whereis ls Post 10190 by guest100 on Friday 9th of November 2001 08:50:00 AM
Old 11-09-2001
Does this work with you?? Because the /bin seems to be appearing in the PATH

Code:
<pre>

isgsi01(root)7: echo $PATH
/usr/openwin/bin:/usr/openwin/bin/xview:/usr/bin/X11:/usr/bin:/usr/ucb:<B>/bin<B>:/usr/sbin:/etc:/usr/etc:/usr/sccs:/usr/ccs/bin:/usr/opt/SUNWmd/sbin:/opt/SUNWhsm/sbin:/jumpstart/admin/bin:.

isgsi01(root)9: whereis ls
ls: /usr/bin/ls /usr/ucb/ls
isgsi01(root)10: 


</pre>

but still does not show up using 'whereis'
 

2 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

difference of find,locate and whereis

hi guys, may i know the difference of find,locate and whereis ? (3 Replies)
Discussion started by: cromohawk
3 Replies

2. Homework & Coursework Questions

Help with find/whereis C Shell Script

Use and complete the template provided. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Write a C Shell Script called "hunt" that takes a filename as it's single parameter and displays the full pathname of every file name that matches,... (1 Reply)
Discussion started by: new2C
1 Replies
WHEREIS(1)						      General Commands Manual							WHEREIS(1)

NAME
whereis - locate the binary, source, and manual page files for a command SYNOPSIS
whereis [ -bmsu ] [ -BMS directory... -f ] filename ... DESCRIPTION
whereis locates source/binary and manuals sections for specified files. The supplied names are first stripped of leading pathname compo- nents and any (single) trailing extension of the form .ext, for example, .c. Prefixes of s. resulting from use of source code control are also dealt with. whereis then attempts to locate the desired program in a list of standard Linux places. OPTIONS
-b Search only for binaries. -m Search only for manual sections. -s Search only for sources. -u Search for unusual entries. A file is said to be unusual if it does not have one entry of each requested type. Thus `whereis -m -u *' asks for those files in the current directory which have no documentation. -B Change or otherwise limit the places where whereis searches for binaries. -M Change or otherwise limit the places where whereis searches for manual sections. -S Change or otherwise limit the places where whereis searches for sources. -f Terminate the last directory list and signals the start of file names, and must be used when any of the -B, -M, or -S options are used. EXAMPLE
Find all files in /usr/bin which are not documented in /usr/man/man1 with source in /usr/src: example% cd /usr/bin example% whereis -u -M /usr/man/man1 -S /usr/src -f * FILES
/{bin,sbin,etc} /usr/{lib,bin,old,new,local,games,include,etc,src,man,sbin, X386,TeX,g++-include} /usr/local/{X386,TeX,X11,include,lib,man,etc,bin,games,emacs} SEE ALSO
chdir(2V) BUGS
Since whereis uses chdir(2V) to run faster, pathnames given with the -M, -S, or -B must be full; that is, they must begin with a `/'. whereis has a hard-coded path, so may not always find what you're looking for. 8 May 1994 WHEREIS(1)
All times are GMT -4. The time now is 08:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy