0% found this document useful (0 votes)
5 views1 page

Linking Files

The document discusses managing files using hard and soft links in Bash and Z Shell. Hard links point to the same inode in memory, allowing multiple filenames to reference the same file, while soft links (symbolic links) reference the name of the file and are less permanent. Commands for creating and viewing these links are provided, along with explanations of their uses.

Uploaded by

akym
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

Linking Files

The document discusses managing files using hard and soft links in Bash and Z Shell. Hard links point to the same inode in memory, allowing multiple filenames to reference the same file, while soft links (symbolic links) reference the name of the file and are less permanent. Commands for creating and viewing these links are provided, along with explanations of their uses.

Uploaded by

akym
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

"Managing Files Using Bash and Z Shell" course by Mateo Prigl at Pluralsight

Linking Files
Links are pointers to files. Hard links point to the inode which holds the
metadata about a file in memory. More than one file can point to the same
inode. In essence, all of the filenames are just pointers to these inodes in
memory.
If you use the ls -l command, you will see the number after the file permissions.
This number tells you how many filenames are pointing to the same inode in
memory. To see this inode number, you can use the i option with ls.

$ ln file hard_link_file

This command will create a hard_link_file which is the link file to the same
inode that the original file points to.
Soft (symbolic) links are less permanent because they just hold the name of
the file they point to.
You can create them by addint the s option. These kind of links are useful if you
are pointing to a file on a different filesystem or if you are trying to create links
to a directory.
If you want to see the contents (the files) of the directory this link points to, add
the L option to the ls command.

1/1 © Copyright 2020 by Pluralsight

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy