Featured

    Featured Posts

Symbolic links

A symbolic link is a special type of file that points to other files instead of pointing to data on the hard drive. Unlike hard links, they don’t share the same inode number. A symbolic link contains a text string that is automatically interpreted and followed by the operating system as a path to another file or directory. A symbolic link is a second file that exists independently of its target.
Symbolic links are more common than hard links. Their biggest advantage over hard links is that they work over different partitions.
To create a symbolic link, you use the -s option with the ln command, as shown in this example:
linux creating symbolic links
Note that the files don’t have the same inode number.
Now we will change the content of the file and then read the new content:
linux symbolic links change content
If we delete the original file, the link becomes useless:
linux deleting a symbolic link
author

Author Name

Author Description!

Get Free Email Updates to your Inbox!

Post a Comment

www.ccna.ma

yu
Powered by Blogger.

Translate

Copyright © Learn Linux Th3pro.xyz | Blogger Templates | Designed By Code TAOUSSI