Solved

AIX question

Posted on 2001-08-06
4
217 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
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

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

713 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