课程: Linux: Files and Permissions

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Creating links to files and dirs

Creating links to files and dirs

- [Instructor] When organizing your workspace, it can be advantageous to create links or shortcuts to your files and directories. For instance, you could have a link in your home directory called Netdrive, that points to a network drive that's at /media/network/servers/user1/files. This saves time browsing to it as it's a shortcut right in your home directory. You could also have a link in your home directory called Photos that points to a photo directory, deep within the operating system. We have two different kinds of links, symbolic links and hard links. We'll start out by creating hard links. In a terminal, let's create a directory for this exercise by typing in mkdir space tilde slash lnexercise and hit Enter. Now, change into it by typing in cd space tilde slash lnexercise and hit Enter again, and verify your path with pwd. Now, let's create a file by typing in touch space file.txt, and a directory by typing in…

内容