I have two files. file1
is executable and file2
is just a text file and I use them frequently but I have to do cd
every time to reach the directory.
How can I make file1
universally executable in terminal and how to access the content of file2
irrespective of my location in terminal.
Is it possible to add content of file2
in man page
so that I can just do man file2
.
I think this can be done using /etc/environment
but I want to know proper method of doing this.
cd
, you can just type the full path from anywhere, for exampleless ~/mystuff/file2
and that can be made into an alias, or you can addmystuff
to your path, etc, etc, as explained in linked post