From the course: Linux: Files and Permissions
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Creating links to files and dirs - Linux Tutorial
From the course: Linux: Files and Permissions
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Understanding filesystem paths4m 18s
-
(Locked)
Creating files and dirs4m 38s
-
(Locked)
Copying files and dirs4m 39s
-
(Locked)
Moving and renaming files and dirs4m 11s
-
(Locked)
Deleting files and dirs3m 44s
-
(Locked)
Creating links to files and dirs6m 24s
-
(Locked)
Making file manipulation safe2m 12s
-
(Locked)
Challenge: Linux files3m 21s
-
(Locked)
Solution: Linux files3m 45s
-
-
-
-