Assumptions:
- I am on linux machine ubuntu distro.
- I don't have root/admin privileges-just a standard user.
- I mostly use bash shell.
- The directory
/ts
already exists. I only have read only access to this directory.
When I ssh into this linux machine, I want /ts
to refer to ~/.local/ts
.
eg. Given the directory/file structure below:
/
├── ts
| └── A.sh
├── home
└── rtetteh
└── .local
└── ts
└── B.sh
When I execute ls /ts
I want to see B.sh
. When I execute cd /ts
I want to be in ~/.local/ts
.
Not limited to only the examples above, I want /ts
to reference ~/.local/ts
in all scenerios. I only want this for myself. I dont want to change any behavior for other users on this linux server.
I did some research and got exposed to mount --bind
but this requires root/admin privelages and I am sure this specific technique will affect other users too which is not what I want. I also saw something about bindfs
but not totaly sure still researching.