Tuesday, 16 July 2019

linux - Making custom, single-character directory mappings like ~ > $HOME

We all know that ~ maps to $HOME or /home/user.


Is it possible to make other mappings like this on other characters (@,_)?


A possible workaround I thought of was to use variables (which require at least two characters)...


H=/run/media/user/Storage
cp $H/file.txt .

But is there a better way?

No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...