Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用符号链接导航?
我创建了一个符号链接,让我们说“项目”到我的“/Desktop/Work/Projects”文件夹。因此,如果我在我的根目录中输入“ls”,我会看到一堆东西,它们之间的符号链接。'cd projects' 失败并出现以下错误:
-bash: cd: projects: No such file or directory
符号链接已损坏。如果你的/Desktop/Work/Projects意思是“你的” /home/youruser/Desktop/Work/Projects,那么这就是你应该符号链接到的路径:
/Desktop/Work/Projects
/home/youruser/Desktop/Work/Projects
ln -s "/home/youruser/Desktop/Work/Projects" "/home/youruser/projects"