Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

linking directories help 1

Status
Not open for further replies.

GuzaPasha

Technical User
May 15, 2003
311
FR
How to link two directories on separate file systems. Let explain u in more details:

suppose that i have following directories
/filesystem1/dir1
/filesystem2/dir2

after linking them. files i want to copy into the folder dir1 are copied into the dir2. Listing the content of the dir1 i can see links to all files that are now in dir2. So my program will still see those files over links. This is not going to be static linking, but i will very often copy some files into the dir1 and don't want to make any linking again.

Thanx in advance
Guza
 
Your request isn't clear for me.
Anyway, in the ln man page pay attention to the -s option.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
thanx, let me explain again.
here is the structure

/filesystem1/dir1/file1.txt
/filesystem2/dir2/

ln -s /filesystem1/dir1 /filesyste2/dir2

after using ls -l command (or ls -F) in dir2

there is sth like

dir1

but i want to see files insted of directory in it.

Could u help PHV?
GuzaPasha




 
And this ?
rmdir /filesystem2/dir2
ln -s /filesystem1/dir1 /filesystem2/dir2

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top