LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mount symbolic link files (https://www.linuxquestions.org/questions/linux-newbie-8/mount-symbolic-link-files-870865/)

ted_chou12 03-24-2011 11:03 PM

mount symbolic link files
 
Hi, I was looking up the symbolic link command in bash, but it seems to be for directories. What is the command function in bash for files such that a file such as :
/path/to/file1.txt can be mapped to /diff/path/file2.txt
its not a shortcut, more like it tricks the system to think file2.txt is the actual file1.txt, so you can open file2.txt edit it, play it like usual?
Thanks,
Ted

ntubski 03-24-2011 11:13 PM

Quote:

Originally Posted by ted_chou12 (Post 4302520)
Hi, I was looking up the symbolic link command in bash, but it seems to be for directories.

Symbolic links work fine for regular files as well.

grail 03-24-2011 11:18 PM

Ted, if you look in /lib, for example, you will find plenty of links to files.

Check out the man page for ln and you should be good to go.


All times are GMT -5. The time now is 03:14 PM.