Run
command on your prompt to see contents in PATH variable.The shell searches the PATH in order.
/bin:/usr/local:/usr/ucb:/usr/bin
/bin has higher precedence..and so on.
Last edited by Dhruva; 03-10-2008 at 03:17 AM..
Reason: added one line
I am looking for the best way to move files into a directory (ie PDF_files), if the directory doesn't exist to create it.
However I am passing the full filename (psfile) of the file so I will have to remove the filename from the end, which can be at different field end lengths.
This is a... (2 Replies)
I need to know how to enter a unix path in a cgi script for a guest book:
example:
My URL is http://www.kitachi.info
I have an html file in the main folder on my site, the file is called :
gbook.html
what would the correct unix path for this file be ???
the part of the script... (1 Reply)
hi
i want run an unix application from a windows program/application.i am using SSH(command line version)to log on to a unix machine from windows. the application has to read a configuration file inorder to run. the configuration file .CFG is in bin in my home directory. but the application... (1 Reply)
Hi,
I've been in the IT field for a few years now, less than 10. I've done a little of everything from database administration, development, systems administration, and unix administration. Although, I wouldnt say I'm a senior level in any of those. Unix definitely stands out in my preferences... (5 Replies)
Hi Frindz,
I want to get the entire path of a file.
I am in root directory and i know the file name, However dont know the path where it is.
Please tell me the command to get the entire path for the file?
Thanks in advance,
Rashmy. (14 Replies)
Hi all,
I've found following information in sunfreeware:
-----------------
If the package installs in /usr/local/bin, you must put /usr/local/bin (or /opt/foo/bin when programs install in /opt/fee) in your UNIX PATH. You will also probably want to add /usr/local/man to your MANPATH in a... (9 Replies)
Greetings to everyone,
iam a new unix learner. i just jumped from windows to unix.
in my office iam accessing unix machine thro telnet.
i got this path details after executing the following command echo $PATH
/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/mipl/bin.
can... (2 Replies)
Hi,
I am having experience on Perl and C# and worked as Windows Sytem Admin and now iam planning to become a UNIX developer.
I am having knowledge on basic UNIX..
can any one suggest me any good material for c/c++ UNIX programming.
on what all things a UNIX Programmer needs to... (0 Replies)
Hi All,
This question is regarding career path. I was not sure about which forum I should drop it, so putting it here.
I have 12 years of experience on UNIX i.e. majority of Solaris and some of Linux (Suse & Red Hat). Since starting I have been working on 100% administration side and I am not... (0 Replies)
Hi,
I'm new to Unix world, and i want to get certified in Unix because a lot of companies here in my country ask for Unix knowledge , so i'm here to ask what is the path to get such certifications?
Thank you (1 Reply)
Discussion started by: thegeekaid
1 Replies
LEARN ABOUT OPENSOLARIS
whereis
whereis(1B) SunOS/BSD Compatibility Package Commands whereis(1B)NAME
whereis - locate the binary, source, and manual page files for a command
SYNOPSIS
/usr/ucb/whereis [-bmsu] [-BMS directory... -f] filename...
DESCRIPTION
The whereis utility locates source/binary and manuals sections for specified files. The supplied names are first stripped of leading path-
name components 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 places:
etc
/sbin
/usr/bin
/usr/ccs/bin
/usr/ccs/lib
/usr/lang
/usr/lbin
/usr/lib
/usr/sbin
/usr/ucb
/usr/ucblib
/usr/ucbinclude
/usr/games
/usr/local
/usr/local/bin
/usr/new
/usr/old
/usr/hosts
/usr/include
/usr/etc
OPTIONS
The following options are supported:
-b Searches only for binaries.
-B Changes or otherwise limits the places where whereis searches for binaries.
-f Terminates 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.
-m Searches only for manual sections.
-M Changes or otherwise limits the places where whereis searches for manual sections.
-s Searches only for sources.
-S Changes or otherwise limit the places where whereis searches for sources.
-u Searches 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.
EXAMPLES
Example 1 Finding files
Find all files in /usr/bin which are not documented in /usr/share/man/man1 with source in /usr/src/cmd:
example% cd /usr/ucb
example% whereis -u -M /usr/share/man/man1 -S /usr/src/cmd -f *
FILES
o /usr/src/*
o /usr/{doc,man}/*
o /etc, /usr/{lib,bin,ucb,old,new,local}
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWscpu |
+-----------------------------+-----------------------------+
SEE ALSO chdir(2), attributes(5)BUGS
Since whereis uses chdir(2) to run faster, pathnames given with the -M, -S, or -B must be full; that is, they must begin with a `/'.
SunOS 5.11 10 Jan 2000 whereis(1B)