Directories in PATH are searched in the order they appear. If you want your bin directory to take precedence, it has to occur ahead of the directory containing the conflicting executable.
Alternatively, if the issue is only with this one binary, you could create an alias with an absolute path and leave PATH unmodified:
:) dear members;
I am trying to placea directory to keep minor records in particular directories.. rather than just rely on hard links.. I would like to set the $PATH variable so that I can access the directory itself from anywhere; ex./ /tmp or /bin /var...
I know how to export enviromental... (4 Replies)
Hi there,
I need help on setting the path variable. How can I set the path variable with Bourne Shell. My scripts goes like this, but did not work.
#!/bin/sh
PATH=/usr/bin:/usr/ucb:/etc:/export/home/zchen/home
export PATH
Thanks,
Z (4 Replies)
Hi all,
I have a java command in a shell script.
When i m executing the command from the prompt its working fine. But when i paste the same command in a shell script and execute the shell script it says path not found. Please help. (5 Replies)
I am trying to install the pkg-get package to a fresh install of Solaris 10. I am able to download and install correctly using the default directory for both pkg-get and wget as found on blastwave.org. When I issue the command "which wget and which pkg-get" it returns no wget or pkg-get found in... (1 Reply)
I have the following script "test". When i tried to execute it, I am not able to run it. I dunno why ? Then i tried getting the first few lines of the script which is displayed below:
$head -10 test
#!/bin/ksh
PROG=$0;export PROG
ORAUSER=`get_inf_env INFORM_DB_ACCOUNT`;export ORAUSER... (13 Replies)
Hi ,
I new to solaris. I want to set path variable . Eg: JAVA_HOME.
When i do this,
#JAVA_HOME=/usr/jdk/jdk1.6
#export JAVA_HOME
#echo $JAVA_HOME
/usr/jdk/jdk1.6
Then its ok. When i toggle to bourne shell or if i log off or restart.
then JAVA_HOME is echoed blank.
How to set... (4 Replies)
Hi all,
This is probably a very simple question but I couldn't even think of how to phrase it intelligently so google could tell me the answer.
Basically I am a user on a server, I am not the admin and do not have root privileges. I have downloaded a bunch of programs that I need to use and... (2 Replies)
hi , can anybody help me to chage the class path in unix server.. what are the files need to update .... (2 Replies)
Discussion started by: Madhu Siddula
2 Replies
LEARN ABOUT X11R4
filecap
FILECAP:(8) System Administration Utilities FILECAP:(8)NAME
filecap - a program to see capabilities
SYNOPSIS
filecap [ -a | -d | /dir | /dir/file [cap1 cap2 ...] ]
DESCRIPTION
filecap is a program that prints out a report of programs with file based capabilities. If a file is not in the report or there is no
report at all, no capabilities were found. For expedience, the default is to check only the directories in the PATH environmental variable.
If the -a command line option is given, then all directories will be checked. If a directory is passed, it will recursively check that
directory. If a path to a file is given, it will only check that file. If the path to the file includes capabilities, then they are written
to the file.
OPTIONS -a This tells the program to show all capabilities starting from the / directory. Normally the PATH environmental variable is used to
show you capabilities on files you are likely to execute.
-d This dumps all capabilities for reference.
EXAMPLES
To check file capabilities in $PATH:
filecap
To check file capabilities of whole system:
filecap -a
To check file capabilities recursively in a directory:
filecap /usr
To check file capabilities of a specific program:
filecap /bin/passwd
To list all possible capabilities:
filecap -d
To set a file capability on a specific program:
filecap /bin/ping net_raw net_admin
SEE ALSO pscap(8), netcap(8), capabilities(7).
AUTHOR
Steve Grubb
Red Hat March 2009 FILECAP:(8)