shortcut to file path

Issues related to applications and software problems
Post Reply
The.Ex-pat
Posts: 22
Joined: 2019/06/21 00:07:29

shortcut to file path

Post by The.Ex-pat » 2020/07/23 17:59:50

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

User avatar
jlehtone
Posts: 2921
Joined: 2007/12/11 08:17:33
Location: Finland

Re: shortcut to file path

Post by jlehtone » 2020/07/23 23:14:07

Variable, environment variable.

Code: Select all

name=Hello
echo $name

Post Reply

Return to “CentOS 7 - Software Support”