From the course: Linux Foundation Certified System Administrator (LFCS) Cert Prep

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Create and manage soft links

Create and manage soft links

- [Instructor] Let's look now at how Linux manages soft links. You know how when you install a program on Windows, you might get a shortcut on your desktop? Now you double-click on that shortcut and an application gets launched. Now, the application is obviously not installed on your desktop. It may have its files stored in C:\Program Files\MyCoolApp\ directory. And when you double-click the shortcut, this only points to an executable file at \Program Files\MyCoolApp\application.exe. So the double-click on that shortcut basically redirects you to the application.exe, which gets executed. Soft links in Linux are very similar. Now, a hard link is pointed to an Inode, but a soft link is nothing more than a file that points to a path instead. It's almost like a text file with a path to a file or directory inside. The syntax of the command to create a soft link, which is also called a symbolic link, is the same as before, but we need to add the -s, or symbolic option. For example, to…

Contents