Page 1 of 1

shortcut to file path

Posted: 2020/07/23 17:59:50
by The.Ex-pat
I know there is a way to set a shortcut to a file path.
Say,

typing, $directory.name, refers to /some/path/to/the/proper/location/directory.name/

I've been trying to google it, but Alias and soft link, keeps coming up, that's not what I'm looking for.

I just don't want to type the entire file path every time I need to move something to that location.

What am I looking for here.??
e.g.

Code: Select all

mv file1 /some/path/to/the/proper/location/file1
Becomes

Code: Select all

mv file1 $directory.name/file1

Re: shortcut to file path

Posted: 2020/07/23 23:14:07
by jlehtone
Variable, environment variable.

Code: Select all

name=Hello
echo $name