03-17-2002
When setting your PATH make sure you add to the appropriate place in your path list....as the PATH list will be searched from start to finish to find the command you are after - so adding to your PATH may need to be at the end of at the beginning - depending if you want this directory to be searched first or last.
export PATH=/usr/bin/new_directory:$PATH (will add to start of path list)
export PATH=$PATH:/usr/bin/new_directory(will add to end of path list)
Very important if you have a command or fucntion that is stored within two places on your system - and you want to specify which one to use.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a user trying to execute a command,in crontab, which requires certain envrionmental variables to be set. He is using tcsh on a Solaris 7 system. I have created a hack by doing the following in the crontab entry...
0 0-23 * * * rsh localhost -l user /path/command
This doesn't seem... (4 Replies)
Discussion started by: SmartJuniorUnix
4 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
I have been trying to set variable environment for the JAVA_HOME but it doesn' work. The path set is as follows
setenv JAVA_HOME "/usr/local/jdk1.3"
setenv PATH $JAVA_HOME/bin
setenv CLASSPATH ${JAVA_HOME}/lib/tools.jar:{JAVA_HOME}/lib/dt.jar
can anyone suggest Me where am I and... (2 Replies)
Discussion started by: v_sharda
2 Replies
3. UNIX for Dummies Questions & Answers
I'm a newbie and I was wondering if there were any public unix environments on the internet I could telnet to and fiddle around with?? (1 Reply)
Discussion started by: eloquent99
1 Replies
4. Answers to Frequently Asked Questions
We often get questions about how to provide a Unix environment under Windows. Mircosoft has several OS's that collectively are called Windows. Most users are running a recent Microsoft OS with an NT kernel, usually Windows XP. The solutions in this thread may not work on very old Microsoft... (0 Replies)
Discussion started by: Perderabo
0 Replies
5. UNIX for Dummies Questions & Answers
Im a learner on the unix/linux OS,i wanted a description of the main environments supported by the unix/linux environment. Thanks (2 Replies)
Discussion started by: zizu
2 Replies
6. UNIX for Dummies Questions & Answers
Hello All,
We were planning to re host or change the environments (DEV,UAT & Prod) from one server to a different or new servers on a different host. So we have Informatica, Oracle software installed on our existing servers, since we upgraded the Informatica a couple of times there were many... (0 Replies)
Discussion started by: Ariean
0 Replies
7. Shell Programming and Scripting
Hi all,
I have a task which need to be done in two test environment.both the script does the same work.i am plannig to automate that like writing a perl program to execute the script in parallel in both the test environment.i am able to call the unix script from the using in both the... (3 Replies)
Discussion started by: pals70423
3 Replies
8. AIX
Hi,
I trust that you are well - I'm a bit new into AIX and I've been assigned a task to write a script that will always validate between our two Prod (Prod A and Prod B) environments to confirm which prod we live at. The two environments are exact replicas and this check I need to put in... (5 Replies)
Discussion started by: Twaggzk
5 Replies
9. Linux
Hi All,
Does anyone know if it's possible to switch desktop environments via the terminal?
I'm writing a script to install Cinnamon on Ubuntu and I would then like to remove unity but at the moment I have to ask the user to log out, log in with cinnamon and then continue the script to remove... (1 Reply)
Discussion started by: maerlyngb
1 Replies
LEARN ABOUT OPENDARWIN
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)