Ubuntu怎么建立软链接? Ubuntu软链接建立的方法
<p>怎么在Ubuntu中建立软链接?下面我们就来看看详细的教程。</p><p>1、首先我们先来建立一个文本文件,下面将会给这个文件<strong>建立软链接</strong>,如下图所示</p>
<p align="center"><img alt="" src="https://img.jbzj.com/file_images/article/201803/20180325143624156.jpg " /></p>
<p>2、然后我们通过Ubuntu中的Vim编辑器来给文本文件写一些内容,如下图所示</p>
<p align="center"><img alt="" src="https://img.jbzj.com/file_images/article/201803/20180325143624157.jpg " /></p>
<p>3、接下来运用<span style="color: #ff0000"><strong>ln命令</strong></span>来建立软链接,如下图所示,<strong>表示在1-softlink.txt上建立1.txt文本的软链接</strong></p>
<p align="center"><img alt="" src="https://img.jbzj.com/file_images/article/201803/20180325143624158.jpg " /></p>
<p>4、列举一下当前文件夹的内容,我们可以看到新建立的软链接已经在文件夹里了,如下图所示</p>
<p align="center"><img alt="" src="https://img.jbzj.com/file_images/article/201803/20180325143624159.jpg " /></p>
<p>5、下面我们<strong>将软链接的内容复制给一个txt文本,</strong>你会在当前文件夹下面看到这个txt文本</p>
<p align="center"><img alt="" src="https://img.jbzj.com/file_images/article/201803/20180325143624160.jpg " /></p>
<p>6、这个时候,如果我们删除软链接的源文件的话,然后打开软链接的txt文本,你会发现打不开了,这和windows系统中的道理是一样的,源文件没了,软链接就失去了作用</p>
<p align="center"><img alt="" src="https://img.jbzj.com/file_images/article/201803/20180325143625161.jpg " /></p>
<p>7、综上所述,<strong>Ubuntu中建立软链接运用</strong><span style="color: #ff0000"><strong>ln命令</strong></span>,第一个参数是要建立软链接的文件,第二个参数是软链接名称</p>
<p>以上就是Ubuntu软链接建立的方法,希望大家喜欢,请继续关注琼殿技术社区。</p>
<p><strong>相关推荐</strong>:</p>
<p><a target="_blank" href="https://www.jb51.net/os/Ubuntu/548773.html">ubuntu16.04系统怎么带鼠标截图?</a></p>
<p><a target="_blank" href="https://www.jb51.net/os/Ubuntu/549777.html">ubuntu系统的笔记本触摸板不能单击怎么办? </a></p>
<p><a target="_blank" href="https://www.jb51.net/os/Ubuntu/551029.html">ubuntu mate桌面右键菜单图标不统一该怎么办? </a></p>
頁:
[1]