This question already has an answer here:
I am using gnome-terminal. I often work on large projects where there are lots of sub-directories and I have to compile them from the terminal. It's a very problematic to work with long-path terminal prompt while you have one monitor.
Assume you are in a directory,
Now while I am using the terminal, is there any tricks or shortcuts to make the current address to a dummy string or text so that it may easy to work. Like if I want to show the above address as,
proj1 = /sys/dev/block/7:6/bdi/subsystem/7:7/power. I want do it on the go. like while I am using the terminal can I do it in a short amount of work.