Link to home
Start Free TrialLog in
Avatar of Rohit Bajaj
Rohit BajajFlag for India

asked on

creating link between two directories on two different linux machines

HI,
I want to create a folder X on machine A which links to folder Y on machine B.
How can i do it in linux ?

Also i have a directory on a linux machine which shows highlighted in green which i guess is a link to some other directory on another machine.
But i am unable to view the details of the directory like where it is linked to n all..
what linux command can help me do that.

Thanks
Avatar of Tintin
Tintin

How are your Linux boxes networked?  
Do you use NFS mounts, SMB mounts or something else?
check the file details with type and #file command to see what kind of directory is that ... generally green is executable file and sky blue is link file...

To accomplish this task i can suggest either NFS or SMB.

TY/SA
Avatar of Rohit Bajaj

ASKER

How do i find out that ?
#ls -la <dir>

#file <dir>

TY/SA
Following are output of the commands run on my machine :

file DBdumpOutfile
------------------------------------
DBdumpOutfile: directory


ls -la DBdumpOutfile
--------------------------------------------
total 744268
drwxrwxrwx 2     507     507      4096 Feb  7 06:00 .
drwxrwxr-x 7 ytxdist ytxdist      4096 Jan  9 11:44 ..
-rw-rw-rw- 1     507     507 379346211 Feb  2 03:12 20140202031136dumpfile.xml
-rw-rw-r-- 1 ytxdist ytxdist  13082184 Feb  2 03:12 20140202031136dumpfile.zip
-rw-rw-rw- 1     507     507 357496745 Feb  4 23:50 20140204234827dumpfile.xml
-rw-rw-r-- 1 ytxdist ytxdist  12186081 Feb  4 23:50 20140204234827dumpfile.zip

It doesnt show if this is linked to some other folder.
ASKER CERTIFIED SOLUTION
Avatar of Sandy
Sandy
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
df -h DBdumpOutfile
---------------------------------
Filesystem            Size  Used Avail Use% Mounted on
172.16.1.182:/DBdumpOutfile
                       55G  5.8G   47G  12% /data/ytxdist/SCHEDULER/DBdumpOutfile

Yes i got it here the information which i needed.

Thanks
:)