how to make a file that will open specific things for you
how would i go about making a file that would open up a certain directory instead of me typing cd "directory" everytime i want to use that program?
-thanks in advance
You can create a script file that would do that for you.. Let's call this file
That's it! Put whatever directory in that you want after the cd.
After you create this file, do this command:
chmod +x gothere
And if you want it to be available no matter what directory you are currently in, do something like this:
cp gothere /usr/bin/gothere
Or you could use your shell alias function, like in Bash :
alias myprogram="cd /path/to/your/directory; ./myprogram"
then you just type :
to access the directory and execute 'myprogram' from here
|All times are GMT -5. The time now is 04:22 PM.|