A symbolic link is a pointer to another file or directory. It can be used just like the original file or directory. A symbolic link appears in a long listing (ls -l) with a reference to the original file/directory. A symbolic link, as opposed to a hard link, is required when linking from one filesystem to another and can be used within a filesystem as well.
To create a symbolic link, the syntax of the command is similar to a copy or move command: existing file first, destination file second. For example, to link the directory /export/space/common/archive to /archive for easy access, use:
ln -s /export/space/common/archive /archive
To link the runtime control script /etc/init.d/httpd to /etc/rc2.d/S77httpd, use:
cd /etc/rc2.d
ln -s ../init.d/httpd S77httpd
See also: Create a hard link in UNIX
http://www.oschina.net/question/158589_56229
本文深入探讨了符号链接的概念,解释了其作为文件和目录指针的作用,并提供了在Unix系统中创建符号链接的步骤。包括如何使用命令行语法进行创建,以及在不同文件系统间以及在同一文件系统内的应用实例。
1037

被折叠的 条评论
为什么被折叠?



