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
Solved

couple questions about set path

Posted on 1998-07-23
2
239 Views
Last Modified: 2010-08-05
My sys admin has set couple paths at .cshrc_global and I don't have permission to edit the file.
How can I add my own path? If I type set path = ( ~/usr/local/bin ), this will set path ONLY to
my ~/usr/local/bin and the old paths that have been assigned by my sys admin will be deleted.

My 2nd question is: I hate to type ./my_executable_file everytime. How can I make the program runs
when I just type my_executable_file without ./  ?

Thanks.
0
Comment
Question by:kidz2001
2 Comments
 
LVL 5

Accepted Solution

by:
n0thing earned 20 total points
ID: 2009146
Hi,

  Just copy the .cshrc_global into your home directory and rename it to .cshrc, edit the file and add whatever path you need in
the path statement. Inorder to execute something in the current directory just add a "." to the end of your path statement.

Ex:
set path = ( /usr/bin /usr/local/bin /etc /abc/def . )

Regards,
Minh Lai
0
 

Author Comment

by:kidz2001
ID: 2009147
I found another simple way. I don't need to copy .cshrc_global, but instead at my .cshrc, I add

set path = ( $path ~/user/local/bin \
                    $path . )


0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
NTP Server in VMware 5 285
Remote Change Dates on AIX Automation 7 69
Linux: disable vim auto-comment 7 136
Linux hostname change 2 83
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

840 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