Softlinks are useful on any operating system to replace long, complicated directory paths with a simpler one.
Options for accessing remote softlinked paths over SSHFS is best done with the
sshfs -follow_symlinks option.
[email protected]with external HDD
- Laptop: remote SSHFS
- setup server:
ln -s /media/BigHDD ~/BigHDD
- on laptop create
#!/bin/sh sshfs -o follow_symlinks [email protected]: ~/X
mkdir ~/X chmod +x joeBigHDD.sh
- connect to remote HDD from laptop via SSHFS
./joeBigHDD.sh cd ~/X/BigHDD
- To disconnect the SSHFS drive, on laptop:
fusermount -uz ~/X