Solved

couple questions about set path

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
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.

688 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