I'm new to modifying links as well as administering Linux, Is it possible to soft link a specific folder to a remote server's folder?
(I'm not sure what to use hardlinks/symlinks/etc.)
Sorry for being a newb.
Any help would be awesome.
Thanks!
You have to use soft links (aka symlinks) as follows:
ln -s /net/server/some/dir /home/me/mysymlink
If your current working directory is currently /home/me
, then you can type this instead:
ln -s /net/server/some/dir mysymlink
ln -s ...
. The 1st parameter is the file or directory that already exists.
what filesystems are involved in this configuration? are you using NFS? are you using CIFS/Samba?
you cannot accomplish this from the local filesystem.
given clientA and clientB are accessing remoteA you cannot simply run user@clientA # ln -s /local/file /remote/directory
as remoteA and clientB would read /remote/directory/file
in local scope. that is, when clientB is accessing /remote/directory/file
clientB would be accessing /local/file
on clientB's hard drive and not on clientA's hard drive.
the way you solve this is to copy the files to remoteA or create a network mount from clientA to remoteA but this needs to be done on remoteA.
this is very vague but without a specification of your configuration, I cannot really help further.
You can mount the remote filesystem locally (or the local system remotely), which is similar to want, but this depends on the filesystems on each end. If you're doing it from linux to linux, you can most likely use sshfs
.