LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-10-2012, 04:23 AM   #1
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 179

Rep: Reputation: 0
Create a links Between two Folder


hello,
i want to create a link between two folder , that anytime one folder changed the other changes too.

thanks..
 
Old 06-10-2012, 04:43 AM   #2
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 190Reputation: 190
Sounds like you want a symbolic link to me,

Code:
ln -s /path/to/original/dir /path/to/linkname
see man "ln"..
 
Old 06-10-2012, 06:12 AM   #3
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 179

Original Poster
Rep: Reputation: 0
exactly..
Thanks.
 
Old 06-11-2012, 10:27 AM   #4
jsaravana87
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558
Blog Entries: 5

Rep: Reputation: Disabled
Permanent link

#mount --bind /source /destination

#vi /etc/fstab

/source /destination ext3 rw,bind 0 0

#mount -a -To save the mount

Symlinks could be flushed offed when the system get rebooted .So make a permanent mount of the directory.
 
Old 06-11-2012, 07:32 PM   #5
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 190Reputation: 190
Quote:
Symlinks could be flushed offed when the system get rebooted
Unless the link is placed in a temporary fs (such as /dev) I dont see how?
 
Old 06-11-2012, 07:48 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Agreed; symlinks are stored as files on disk...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] create sub-folder from folder name and transfer files on the fly BoydRice Linux - General 5 03-07-2012 08:44 PM
Symbolic links to remote ftp folder HRCerqueira Linux - General 1 10-13-2007 07:43 PM
soft links / folder permissions mmoor Fedora 2 07-31-2007 10:04 AM
create a folder/file within a folder using perl indu.a Programming 2 03-07-2007 11:09 PM
how can i default the max folder file size when it create inside a folder antony_csf Linux - Software 1 06-17-2004 03:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration