LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   short cut to a file in the path (http://www.linuxquestions.org/questions/linux-software-2/short-cut-to-a-file-in-the-path-255164/)

balloon 11-15-2004 12:44 PM

short cut to a file in the path
 
I have a file that is down in the very bottom of the path, but I need to access it quite often. So is there any way that I can set a variable to be equal to that lengthy path, and use it any time I want to access that file?

david_ross 11-15-2004 01:35 PM

You could use either:
alias something="/path/to/command"

or:
ln -s /path/to/command /usr/local/bin/something

The first will create a bash alias for the command and the second will create a symlink to the file in your path.


All times are GMT -5. The time now is 09:26 AM.