Solved

couple questions about set path

Posted on 1998-07-23
2
213 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

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…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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.

760 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now