Linux下面究竟什么是symbolic link, 怎样创建一个symbolic link
来源:互联网 发布:unity骨骼动画优化 编辑:程序博客网 时间:2024/05/01 16:06
A symbolic link, also termed a soft link, is a special kind of file that points to another file, much like a shortcut in Windows or a Macintosh alias. Unlike a hard link, a symbolic link does not contain the data in the target file. It simply points to another entry somewhere in the file system. This difference gives symbolic links certain qualities that hard links do not have, such as the ability to link to directories, or to files on remote computers networked through NFS. Also, when you delete a target file, symbolic links to that file become unusable, whereas hard links preserve the contents of the file.
To create a symbolic link in Unix, at the Unix prompt, enter the following command:
ln -s source_file myfile
Replace source_file
with the name of the existing file for which you want to create the symbolic link (this file can be any existing file or directory across the file systems). Replace myfile
with the name of the symbolic link. The ln
command then creates the symbolic link. After you've made the symbolic link, you can perform an operation on or execute myfile
, just as you could with the source_file
. You can use normal file management commands (e.g., cp
, rm
) on the symbolic link.
Note: If you delete the source file or move it to a different location, your symbolic file will not function properly. You should either delete or move it. If you try to use it for other purposes (e.g., if you try to edit or execute it), the system will send a "file nonexistent" message.
- Linux下面究竟什么是symbolic link, 怎样创建一个symbolic link
- Linux下面究竟什么是symbolic link, 怎样创建一个symbolic link
- Linux下面究竟什么是symbolic link, 怎样创建一个symbolic link
- Linux下面究竟什么是symbolic link, 怎样创建一个symbolic link
- 创建Symbolic Link
- linux Symbolic link
- Symbolic Link
- Symbolic link
- symbolic link
- Hard link, symbolic link
- Linux Hard link and Symbolic link
- Symbolic link on windows
- Chapter4.17 Symbolic link
- Hard Link versus Symbolic Link
- Hard link 和 Symbolic link
- hard link and symbolic link
- linux hardlink 和 symbolic link的区别
- Linux的chmod与symbolic link
- P2P之UDP穿透NAT的原理与实现 - 增强篇(附修改过的源代码)
- [1.1.3] 人机界面简史
- 10种职场经典寓言
- 一条大蟒蛇和一条小毒蛇
- [翻译]CoolStreaming/DONet: 实时流媒体传输的数据重叠网络 (3)
- Linux下面究竟什么是symbolic link, 怎样创建一个symbolic link
- 金山词霸2006专业版(300M)的无法屏幕取词问题的解决方法!
- Windows XP Professional版本与Home版本的一些区别
- DataGrid按钮列的用法
- 名称'System.Web.UI.WebControls'包含的前缀数目超过了最大值
- 设计模式---abstract Factory --创建型
- 互联网富豪如何赚快钱
- 2006年12月9日
- [翻译]CoolStreaming/DONet: 实时流媒体传输的数据重叠网络 (4)