From the course: LPIC-1 Exam 101 (Version 5.0) Cert Prep

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Create links to files and dirs

Create links to files and dirs - Linux Tutorial

From the course: LPIC-1 Exam 101 (Version 5.0) Cert Prep

Start my 1-month free trial

Create links to files and dirs

- [Narrator] When organizing our workspace, it can be advantageous to create links or shortcuts to our files and directories. For instance, we could have a link in our home directory called Netdrive that points to a network drive that's at "/media/network/server/bob/files". This saves time browsing to it as it's a shortcut in our home directory. There are 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. Type in "mkdir" space "lnexercise" and hit enter. Then "cd" and "lnexercise" and hit enter again. You can verify your paths by typing in "pwd". Now let's create a file in a directory. Type in "touch" space "file.txt" and hit enter. And then create a directory by typing in "mkdir" space "dir1". We can verify this with "ls" space "-l". We can see that we have a file named "file.txt" and a directory named "dir1".…

Contents