Solved

AIX question

Posted on 2001-08-06
4
225 Views
Last Modified: 2010-04-21
What is the file that holds the settings that are kind of like path statements in windows?  So that when you type a command you only type the command and not the directory and command everytime.
0
Comment
Question by:tiger1477
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 3

Expert Comment

by:gcauthon
ID: 6356859
For bourne shell, it is ~/.profile, look for the statement "PATH=".
For c shell, it is ~/.cshrc, look for the statement "setenv PATH".
0
 
LVL 11

Accepted Solution

by:
griessh earned 50 total points
ID: 6356877
a few more ways ... do you want to know where to set them or do you want to find out where your current path is set?

In your home directory you will find several files that start with a '.' (this makes them invisible, use ls -ls to see them). The file that is used by your login shell is a starting point to look for the PATH variable. But that might already been set in a central login file ... so check these login scripts also for other scripts that get called.

.cshrc, .login, .profile are files to check. If you want to know where it is set (as long as it is in YOUR script), do a
grep PATH .*

======
Werner
0
 
LVL 3

Expert Comment

by:mrn060900
ID: 6358714
Take a look at /etc/profile, this file is the default profile for all users, the .profile in the users home directory is used for individual changes/preferences.

Regards Mike
www.unixonline.co.uk
0
 

Author Comment

by:tiger1477
ID: 6367935
Thanks for the help that gave me what I needed.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question