• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 240
  • Last Modified:

AIX question

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
tiger1477
Asked:
tiger1477
1 Solution
 
gcauthonCommented:
For bourne shell, it is ~/.profile, look for the statement "PATH=".
For c shell, it is ~/.cshrc, look for the statement "setenv PATH".
0
 
griesshCommented:
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
 
mrn060900Commented:
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
 
tiger1477Author Commented:
Thanks for the help that gave me what I needed.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now