Re: Hard Links: It doesn't matter which one you delete, as long as there is one version of the hard link in existence, the file will still exist. Hard links are like two entries to the same paragraph in the table of contents of a book. So long as one entry remains, the location of the file will always be known.
So, if I get it right, hard links are just a regular file system entry referncing to a physical space already referenced by another entry and file system treats them equally. As a consequence, as long as there is at least one reference to a file, corresponding physical address won't be marked as unused, right?
12:46 Shift + 'Right click' > Copy as Path to get the whole File/Folders Path Wow i have been living in darkness getting full paths, thanks for the Tip man!
Basically links are a feature of a file system. NTFS supports them since a while. But user tools are not that easy to use. Hence, no one knew about them.
Tip, when deleting a directory symlink, make sure you're using Explorer or another program that doesn't do its own recursive deletion, or it *will* delete the files inside the orginal directory. You can find out by making a test folder full of stuff you don't care about, a directory symlink to it, and delete the symlink with whatever program. Symlinks are pretty nice when dealing with stubborn software. I've used it to put part of my Chrome profile on my NAS when I was playing a browser based game that was continually writing lots of stuff there and putting pointless wear on my SSD. I also used them when Dropbox absolutely refused to let me have my Dropbox folder on a removable drive. I was using a mini laptop with very little space in C: and no way to add a bigger disk, but it had a MicroSD slot so that's obviously where I wanted bulk files put.
I actually use symlink a lot, I want my C drive to be used only for windows itself, so for all those stubborn programs that require to install into C, I just move them elsewhere and symlink it 🤣
I wonder why this feature isn't more user accessible, requiring you to go to the command prompt to access it. Maybe they thought it might be too confusing for some people? It's far too useful to hide it away though, even if it's a bit confusing.
Confusion and lack of clarity brings some "danger." He pointed out how in one type of link, it's not easy to recognize that it is one. I would add related possible situations like: deleting the target forgetting something was linked to it because the target shows no signs that it's being linked to, going too link-happy and creating too many that aren't useful or even recursive ones, and using it to get around issues you should manage in a different way. Shortcuts and drive-mapping should do the trick for most of the time that you just want convenience. I think I mainly only use it for the Dropbox trick, and I've used it before to make iTunes put backups on another drive. Some programs actually can't work through the links, and if you have storage space away from your system drive, you should manage your stuff differently, and drive mapping is another option.
@@ThisCanBePronounced If handled at the filesystem level, it is transparent to the application unless the application specifically asks for the information to find out it is a symlink link. A shortcut is not, as that is just given to the application as another file. The biggest reason they are not more common and obvious in windows is FAT doesn't support them, only NTFS. If a program can't work through links then it is deliberately working to block it, the question you should ask is why?
@@EwanMarshall interesting, thanks for the clarification and extra details. L But I don't see how FAT not supporting it means anything. it's been like 20+ years with NTFS around. I don't know how long Linux / Unix / macs have had them though.
@@ThisCanBePronounced "ln appeared in Issue 2 of the X/Open Portability Guidelines", issue 2 was released in 1987. "Symlinks were introduced in 4.2BSD Unix from U.C. Berkeley", 4.2 was released 1984. And more if someone tries to use them on an external drive or memory stick.
Yes, I knew about these symlinks already, and I actually find the hard links are much more useful than symlinks. The symlinks themselves are files that take up one additional cluster to point to another file, whereas the hard links are just a simple entry in an existing pointer to an existing file without adding any additional clusters to the filesystem. It's very useful for categorizing files into multiple folders without having to take up any additional space on the drive by duplicating the files. For example if you have some photographs that you took, and you categorize them into folders for "family photos", "nature photos", etc. If a certain photo fulfills both categories, then you can put the photos in both folders, without having to copy them to both folders and using up twice the space on the drive. You can also list all hardlinks that a particular file possesses by using the "fsutil hardlink list" command on command-line or a Powershell prompt. Also there are Explorer extensions available that will make this simple by doing everything from the File Explorer interface without having to use the command line. One example is a program called "Symlink Creator".
Junctions are also used in the Windows server deduplication. The junctions store the index entries for/into the container files with the deduplicated files. (They are a specific type of junction, so they won't show the link icon modification on the file.)
Nowadays, if you're running AI image generators locally using python, using symlinks is usefull to keep your models in 1 directory and create symlinks to point your generator to these (huge) models. "Regular" symlinks don't work with python, only junctions... So there, I found you a use case! Thank you so much for explaining this. Couldn't have figured it out without you.
This is how Vortex mod manager handles deploying mods! It stores the actual mod files in one location and whenever you deploy a mod, it puts symlinks in the correct location in the game's folder. This means that it's possible to have multiple profiles or easily turn mods on and off without having to move the files!
The information offered in this video might be the most useful thing I have learnt from you since I first started watching your videos so a big thanks to you ThioJoe!
TYSM , I was trying to create a main folder of all my common resourcepacks that i use for all my versions in minecraft, creating a normal shortcut wouldn't work, this did. Thank you again.
A Symlink to a folder will sort alphabetically WITH any other folders in its directory - unlike a shortcut which always appears after all other folders. For me, this is a huge quality of life improvement. Thanks Theo.
Joe, I would really like to Thank You for inspiring me to create content on TH-cam! I had a TH-cam channel before but did nothing, but thanks to your tutorials, I gained some fuel and created videos. People started liking my videos and even said that they are useful and I should keep it up. Now I have reached 318 subscribers and I would like to thank you for helping me reach this point. Great Tutorial and Thumbnail is even better!!!🔥🔥
On Unix a Hard Link can be seen as an additional entry in the file system to the same file. After creation of a hard link there is no "primary or secondary" hard link. Both are equal. So you can remove either one. The file is deleted, when all hard links to a file are deleted. (The "first" entry of the file into a directory structure is counted as the first hard link to that file.)
Hii , this might be very late , and dumb but ... I have a question , Soo u cannot make a hard link from one volume to another / remote volume . But is it possible to create a link on a remote volume to a file on the same remote volume , cuz its the same filesystem as the hardlink/the original file ?
@@ultradude5410 that's awesome ! I'm thinking of making a server with os es installation volumes on a remote drive . And use block level deduplication somehow . To use volume as efficiently as possible .
I knew this feature ever since i use Linux/Mac. But ThioJoe can now explain it to all the rest of the people. Actually, i like that you take these technical jargons and explain in a way that regular people can understand.
Technically the files you normally see are all hard links - they point to some location on the drive that holds the file data. When you create a new hardlink you're just making another link to the same data. This is why file changes(data content changes, the links point to the same changed data) or moves(the path to the link itself changes, but the data remains at the same place so the link still points to the same data) work.
I found a usage besides of making dumb programs work in other disc than c:. So if you are playing minecraft, and you have a bunch of installations and a lot of special folders for each one, sometimes it's a very boring thing to always, for example, syncing resourcepacks or options. You can make a special folder somewhere, and put there any resourcepacks you need on every installation for example, and make a bunch of symlinks to this folder in all of those versions. Congrats, you have a really easy to sync resource pack folder! You don't even need to go to that main directory ever again, but you can just go to this symlink and add, edit or remove packs you need anytime you want. Same for settings, just create symlinks for options.txt. Same goes for worlds, optifine settings (optionsof.txt), mods, or whatever. Really cool!
Dude thanks to this vid I just figured out how to symlink all my individual video project folders to my main stock media repository folder, so now as I get project specific stock footage, its automatically adding to my stock media repository for future projects. That stacked with switching the download location of chrome is gonna change everything. Thank you so much man!!
Directory junctions have an interesting property you can exploit when dealing with removable drives that keep changing drive letter (they sometimes still change even after assigning a drive letter in Disk Management). Instead of trying to force a specific drive letter to the removable drive, I mount the external drive in an empty folder of my choosing in Disk Management (it's the other option in the same dialog as "change drive letter"). Mounting this way actually will cause Windows to create a directory junction with the folder's name that links to the external drive's *volume GUID*. A removable drive will still appear as whatever drive letter Windows gives it, but only the exact drive you mounted in Disk Management will ever show up in that directory!
This is gold. Thank you from the bottom of my heart; finally, I found the answer to my problem. Consider that, while browsing the web, I couldn't find any solution until I stumbled upon your comment. I also found a way to obtain the volume GUID directly from the command line by executing the command 'mountvol X: /L,' where 'X' is the drive letter for which we want to obtain the GUID. By any chance, can you provide information regarding the creation of symlinks on Google Drive? I can't create them; I believe it might be a bug or something similar, but I can't find anything specific on the internet.
You can actually delete either the original file or hard link, as they both point to the same location on the file system. The "size on disk" as shown in the video, is because it is a small text file. A hard link shows the same size on disk as the original file. When you delete the original file, it won't remove it from the filesystem because there is still a "file" pointing to that location.
This will come in handy when I get my 2nd ssd. I won't have to download my *epic games* games again because they don't have an option to move the game location from 1 place to another unlike steam
Yeah, but they should add that feature if they really want to compete with Steam (btw GOG let you move the games, you can move the games and let tell the GOG client you want to import a directory and done)
I remember using Junctions to do a split drive Windows install on Win7. Basically letting windows files be on the SSD while the user and program folders were Junctioned to a Hard Drive.
I crank the playback to 1.5x and speed-feed my brain on these tech-tips. Perfect choice by the way, on using the word, "resolved" at 6:02. It made my ears perk-up. Probably because I spent considerable time today correcting DNS issues. Anyways, great video!
Man, this was explained so well. I got discouraged a moment ago because i wasn't sure exactly what I was looking for, but i noticed the symlink option tonight, and i assumed it was probably some type of link/redirect thing but I didn't know how to actually pull it off...and still don't... yet anyway... I'm still listening to ur video so hopefully I can learn it without the cmd prompt. The only other video i found on this was by a Russian guy and o just couldn't follow it. So here I am. Thanks man.
Familiar with symbolic links from my Unix (yes, pre-Linux) days. But the shift-right-click to bring up the 'copy as path' item - SO USEFUL and I never knew that existed until now! Thank you!!
I was so upset about having to safe my music twice, once in the music folder and once in the onedrive folder. But now i can just put symlinks in the onedrive. Very cool tutorial, I wonder why they are a hidden feature and not a core feature.
0:18 Yup, very familiar with this. It actually is extremely useful. Use this to install software anywhere, just put the symlink in the forced install directory. (and games should always be installed in a partition separate from the OS install partition)
I use symlinks to move "movies" folders from game installs over to a slower mechanical HDD, but keep the main game files on the speedy SSD. Saves space, and that game still 'thinks' everything is in the same place. Even works through Steam updates. Specifically, I use JUNCTIONS, or "soft links".
terrific video.. for linux users like me, symlinks (soft or hard) are not a mystery; but for windows users, this is probably an eye-opener. I did not even know that windows supports "real" links as opposed to shortcuts.
A useful thing about hard links, I can't change the GPU setting of a symbolic link of an exe file. Windows directly changes the original file, not the symlink one. But when I change the symbolic link with a hard link, the link becomes a whole new file for the OS and I can change its own GPU setting separately from the original file. This is so useful for playing Minecraft via java on a dual GPU laptop :P
Nice informative video! Just earlier this week I was talking with a friend about how cool this feature is and how Linux apparently allows you to use symlinks by default rather than shortcuts. Works wonders for getting rid of those stupid Adobe programs and nvidia/spotify cache from your main SSD.
From personal experiance if you use both windows and a unix based operating system do not put the symlink into your dropbox folder. I had it overwrite data because all of a sudden instead of the contents being there it was placed a a file of the symlink and yeah bye bye data. Rather do the route mentioned earlier in video and move the folder to dropbox and symlink at the original location
I thought this feature wasn’t in Windows. I used to use it a lot in Mac OS and I was disappointed when I couldn’t do that in Windows. Thank you so much :)
I actually have used this before to allow a program to use files from another hard drive without the files needing to actually be located in the program files area for the program. It's a very powerful tool.
I couldn't get the /D option to work in Windows 11 - I just ended up with a link that wouldn't double-click and could not be accessed by apps. Just swapping to /J worked fine though and I was very glad of the background that you gave.
At first I (a linux guy) thought: Whatever, I know what a symlink is. But then I realized that I didn't understand what a shortcut is. Thanks for that.
Good one Joe. Instead of having a desktop full of icons, I made a couple of folders and put them in there. This helps me solve some of the quirks associated with doing that.
Was about to comment the same, it turns symbolic links into something that anyone can use, if they understand the terminology involved; cmd scares of many people, and honestly, it's just a hastle generally
I liked this analogy of teleporting and going through a portal. Made it really clear to visualize. Nice! Since I'm a programer, symlinks seem like pointers to me.
A use case similar to the one you mentioned with a cloud synced file/folder... I use this feature to share files/folders with people on cloud services I don't use much. So a coworker only uses Dropbox and is apparently unable to switch... so our shared folder on Dropbox is symlinked to a folder in OneDrive on my end. I have them linked on a secondary PC, too, so I don't have Dropbox running on my main machine at all.
Ohh Man!! Yiu just saved me.. I was thinking how to make just a folder of mines to be available on the onedrove and not the whole of desktop folder.. Thank You sir so much..
I watched this video at the time, knowing it would become useful. I finally got to use it! Accessing OneDrive files on Arc browser from two different devices without changing the path each time... DONE!!
I used it right after ending the video, moved a bunch of games and software then created a symlink, now i have arount 50gb free space on my main drive :D
symlinks are REALLY COOL. I use them personally to keep all of my settings in all of my minecraft instances the same. If you play a lot of modded minecraft and switch between different instances constantly, they're a lifesaver when you don't wanna have to disable auto-jump every time you start up a new instance.
My biggest use of symlinks is so that I can have git repositories in one location and something that uses something within that repository somewhere else. For example I have a github repo that includes multiple minecraft datapacks that I developed, I clone the repo and create symlinks from the datapacks folder in my world to the datapack(s) within the repository
Ah, thanks, I was considering using some hard links for some files that I wanted to have in a git repo but which I wanted to keep available in the directory they were already in, without making that folder a git repo, But I was worried that instead of modifying the file, git might like, delete and replace it with the modified version, and by doing so make it so the two files no longer point to the same thing, But now that you mention that, perhaps a symlink would serve my purpose better?
@@drdca8263 either a symlink or a hardlink would likely work fine for that use case, I would probably recommend symlink just so it is clear in explorer that it is a link to another file, unless you specifically want the ability to move the original file around without breaking the link
@@vdvman1 thanks, after seeing your first comment I talked to my roommate about it and they also agreed that I should use a symlink, so that’s what I’ll do. Thanks again!
Dropbox actually allows you to add files to be backed up that aren't located in the Dropbox folder. However, I get why Joe would want to use Dropbox as a relatable example for a use case of SymLinks. It could be some other cloud storage provides that doesn't provide this feature in their client or it could be a network/external storage scenario.
Thio Joe: i would like to give a tip for gamers this link opertaion can be usefull for tricking the computer by creating junction folders from HDD drive to SSD and that will make Patching games on that hard drive goes faster as computer will work SSD along side the HDD together. For Example pink link the steam folder from where you installed it and drop it as junction on the faster drive you have in your system and that will let the computer think that the folder is installed in SSD drive were its acutally a junction folder , This method worked for me since that time my Patching and Verifying of updates went insane and its not only usefull for updating its also good for games i notice the openning time of it was faster than before since i did this method.
Hello. Great Video, I use it to create a Symblink of a Rom Folder from one drive, so I can save space when I'm not playing a specific game.... very useful indeed.
WARNING WARNING WARNING! I've been using symlinks for decades, nothing new, but very helpful to understand! great educational video. just know in a fringe case it bricked my high end PC. wait , how? it happened during windows 10 version upgrade. All I had was a symlink for Plex database to a SSD for faster response. The ssd was apparently having failures but SMART failed to warn me. during the windows automated upgrade, the drive must have failed beyond recovery, or boot loop fried it. the migration to new windows 10 version "hard" locked system for twelve hours, then ended up in a boot loop. of course I let the upgrade continue that night during that waiting period as I could tell it was making slow progress, similar to a chkdsk dealing with bad sectors. I ended up with an unfixable/unbootable (as per Microsoft support case) system. yes it is fringe case, but Microsoft confirmed,there is a bug with winpe (the OS running during special steps of upgrades) and symlink.
Fun fact i spent like 5 hours on that thumbnail
oof
Yeah it looks 👍👌👍
😮
Good job, Looks click-baity, as always.
wtf 5 hours that time it takes me to write 2 fricking chemistry chapters
Re: Hard Links: It doesn't matter which one you delete, as long as there is one version of the hard link in existence, the file will still exist. Hard links are like two entries to the same paragraph in the table of contents of a book. So long as one entry remains, the location of the file will always be known.
wat ._.
So, if I get it right, hard links are just a regular file system entry referncing to a physical space already referenced by another entry and file system treats them equally. As a consequence, as long as there is at least one reference to a file, corresponding physical address won't be marked as unused, right?
So if my hard link is in another partition, I can never delete the original file?
@@soumyaranjanmahunt1452 I assume that's why you can't have a hard link to a different volume.
Wow so you can make some files effectively undeletable by holding multiple references to them? Sweet.
12:46 Shift + 'Right click' > Copy as Path to get the whole File/Folders Path
Wow i have been living in darkness getting full paths, thanks for the Tip man!
Already knowing about symlinks, what this really teached me is again how amazing Notepad++ is lol
It's shocking how it isn't a default at this point tbh.
Great video, I’ve used hard and soft links in Linux before, I never knew they existed in windows! Thank you for the useful information.
Basically links are a feature of a file system. NTFS supports them since a while. But user tools are not that easy to use. Hence, no one knew about them.
Tip, when deleting a directory symlink, make sure you're using Explorer or another program that doesn't do its own recursive deletion, or it *will* delete the files inside the orginal directory. You can find out by making a test folder full of stuff you don't care about, a directory symlink to it, and delete the symlink with whatever program.
Symlinks are pretty nice when dealing with stubborn software. I've used it to put part of my Chrome profile on my NAS when I was playing a browser based game that was continually writing lots of stuff there and putting pointless wear on my SSD. I also used them when Dropbox absolutely refused to let me have my Dropbox folder on a removable drive. I was using a mini laptop with very little space in C: and no way to add a bigger disk, but it had a MicroSD slot so that's obviously where I wanted bulk files put.
This was so useful for moving my music, videos, and pictures to a seperate drive without losing the paths. My playlists are saved!
As soon as i've read "super shortcut" i knew it's gonna be about Symlinks...
Such a powerful tool to take stuff away from C drive xD
Could you symlink the Windows folder?
@@xfuglen3147 I believe it's possible to, though likely it will break since files that load the filesystem are in there to.
@@RYANTHORNTONCALL Ha asks could you please symlink the windows folder for me?
I actually use symlink a lot, I want my C drive to be used only for windows itself, so for all those stubborn programs that require to install into C, I just move them elsewhere and symlink it 🤣
@@YayaVT now that's a use case I never thought of. Brilliant!
I wonder why this feature isn't more user accessible, requiring you to go to the command prompt to access it.
Maybe they thought it might be too confusing for some people? It's far too useful to hide it away though, even if it's a bit confusing.
There is a shell extension for explorer available to add such features to the right click menu.
Confusion and lack of clarity brings some "danger." He pointed out how in one type of link, it's not easy to recognize that it is one. I would add related possible situations like: deleting the target forgetting something was linked to it because the target shows no signs that it's being linked to, going too link-happy and creating too many that aren't useful or even recursive ones, and using it to get around issues you should manage in a different way. Shortcuts and drive-mapping should do the trick for most of the time that you just want convenience.
I think I mainly only use it for the Dropbox trick, and I've used it before to make iTunes put backups on another drive. Some programs actually can't work through the links, and if you have storage space away from your system drive, you should manage your stuff differently, and drive mapping is another option.
@@ThisCanBePronounced If handled at the filesystem level, it is transparent to the application unless the application specifically asks for the information to find out it is a symlink link. A shortcut is not, as that is just given to the application as another file. The biggest reason they are not more common and obvious in windows is FAT doesn't support them, only NTFS.
If a program can't work through links then it is deliberately working to block it, the question you should ask is why?
@@EwanMarshall interesting, thanks for the clarification and extra details. L
But I don't see how FAT not supporting it means anything. it's been like 20+ years with NTFS around. I don't know how long Linux / Unix / macs have had them though.
@@ThisCanBePronounced "ln appeared in Issue 2 of the X/Open Portability Guidelines", issue 2 was released in 1987.
"Symlinks were introduced in 4.2BSD Unix from U.C. Berkeley", 4.2 was released 1984.
And more if someone tries to use them on an external drive or memory stick.
Yes, I knew about these symlinks already, and I actually find the hard links are much more useful than symlinks. The symlinks themselves are files that take up one additional cluster to point to another file, whereas the hard links are just a simple entry in an existing pointer to an existing file without adding any additional clusters to the filesystem. It's very useful for categorizing files into multiple folders without having to take up any additional space on the drive by duplicating the files. For example if you have some photographs that you took, and you categorize them into folders for "family photos", "nature photos", etc. If a certain photo fulfills both categories, then you can put the photos in both folders, without having to copy them to both folders and using up twice the space on the drive.
You can also list all hardlinks that a particular file possesses by using the "fsutil hardlink list" command on command-line or a Powershell prompt.
Also there are Explorer extensions available that will make this simple by doing everything from the File Explorer interface without having to use the command line. One example is a program called "Symlink Creator".
Junctions are also used in the Windows server deduplication. The junctions store the index entries for/into the container files with the deduplicated files.
(They are a specific type of junction, so they won't show the link icon modification on the file.)
Hm interesting
Nowadays, if you're running AI image generators locally using python, using symlinks is usefull to keep your models in 1 directory and create symlinks to point your generator to these (huge) models. "Regular" symlinks don't work with python, only junctions... So there, I found you a use case! Thank you so much for explaining this. Couldn't have figured it out without you.
I love how symbolic links are so simple yet so damn difficult to explain to someone who doesn't know about them 😂
Why not try "transparent" link, as for explaining. Since most programs don't see it as a link, but just as any other file.
this blew my mind, I could've used this so much at a time when my files got mixed up between drives. Better late than never, thank you!!
This is how Vortex mod manager handles deploying mods! It stores the actual mod files in one location and whenever you deploy a mod, it puts symlinks in the correct location in the game's folder. This means that it's possible to have multiple profiles or easily turn mods on and off without having to move the files!
The information offered in this video might be the most useful thing I have learnt from you since I first started watching your videos so a big thanks to you ThioJoe!
This video provides a transition path from information to working knowledge of a useful feature. Well done and much appreciated...
TYSM , I was trying to create a main folder of all my common resourcepacks that i use for all my versions in minecraft, creating a normal shortcut wouldn't work, this did.
Thank you again.
Time to do this on my friend's computer
C:\ ---> Recycle Bin
@@ThioJoe laughs in evil
@@AizenSosukesama 😼
@@ThioJoethe recycle bin is in the C: drive -> best scenario: free energy, worst scenario: end of the world
A Symlink to a folder will sort alphabetically WITH any other folders in its directory - unlike a shortcut which always appears after all other folders. For me, this is a huge quality of life improvement. Thanks Theo.
Joe, I would really like to Thank You for inspiring me to create content on TH-cam! I had a TH-cam channel before but did nothing, but thanks to your tutorials, I gained some fuel and created videos. People started liking my videos and even said that they are useful and I should keep it up. Now I have reached 318 subscribers and I would like to thank you for helping me reach this point.
Great Tutorial and Thumbnail is even better!!!🔥🔥
On Unix a Hard Link can be seen as an additional entry in the file system to the same file.
After creation of a hard link there is no "primary or secondary" hard link. Both are equal.
So you can remove either one.
The file is deleted, when all hard links to a file are deleted.
(The "first" entry of the file into a directory structure is counted as the first hard link to that file.)
it is actually the same on NTFS. It is just outside of moving a file, windows users generally aren't exposed to them.
Hii , this might be very late , and dumb but ...
I have a question ,
Soo u cannot make a hard link from one volume to another / remote volume . But is it possible to create a link on a remote volume to a file on the same remote volume , cuz its the same filesystem as the hardlink/the original file ?
@@yasirrakhurrafat1142 I don’t see why that wouldn’t work :)
@@ultradude5410 that's awesome !
I'm thinking of making a server with os es installation volumes on a remote drive . And use block level deduplication somehow . To use volume as efficiently as possible .
I only understood about half of this, but I'm still interested and impressed.
I knew this feature ever since i use Linux/Mac. But ThioJoe can now explain it to all the rest of the people.
Actually, i like that you take these technical jargons and explain in a way that regular people can understand.
Joe always finds a way to make everyone's day happier, he inspired me to create my own youtube channel ❤️💓
Joe mama
who's Joe?
@@doge_the_cat what's grass?
amogus
Oh wow didn't know of this. You made it really easy to understand how it works. Great job!
Technically the files you normally see are all hard links - they point to some location on the drive that holds the file data. When you create a new hardlink you're just making another link to the same data. This is why file changes(data content changes, the links point to the same changed data) or moves(the path to the link itself changes, but the data remains at the same place so the link still points to the same data) work.
THANK YOU found this and because of onedrive not wanting anything with files outside docs, desktop, etc this has been very useful!
Fun fact: thio sounds like uncle in portugese, so it sounds like "uncle joe"
Yes, it does. I can attest to that. :D
I always thought about it
tio joe
And in spanish
I think it's done on pourpose
I've used this feature for ages to sync the game settings across characters in Final Fantasy XIV, since the game doesn't let you do that natively.
Yeah, that sounds like a good workaround
I found a usage besides of making dumb programs work in other disc than c:. So if you are playing minecraft, and you have a bunch of installations and a lot of special folders for each one, sometimes it's a very boring thing to always, for example, syncing resourcepacks or options. You can make a special folder somewhere, and put there any resourcepacks you need on every installation for example, and make a bunch of symlinks to this folder in all of those versions. Congrats, you have a really easy to sync resource pack folder! You don't even need to go to that main directory ever again, but you can just go to this symlink and add, edit or remove packs you need anytime you want. Same for settings, just create symlinks for options.txt. Same goes for worlds, optifine settings (optionsof.txt), mods, or whatever. Really cool!
Thanks Joe! I thought of a number of uses for this feature just while I was watching the video. Good stuff to know.
Dude thanks to this vid I just figured out how to symlink all my individual video project folders to my main stock media repository folder, so now as I get project specific stock footage, its automatically adding to my stock media repository for future projects. That stacked with switching the download location of chrome is gonna change everything. Thank you so much man!!
I just had my "ah I remember that moment" (13:50), very useful video.
Directory junctions have an interesting property you can exploit when dealing with removable drives that keep changing drive letter (they sometimes still change even after assigning a drive letter in Disk Management). Instead of trying to force a specific drive letter to the removable drive, I mount the external drive in an empty folder of my choosing in Disk Management (it's the other option in the same dialog as "change drive letter"). Mounting this way actually will cause Windows to create a directory junction with the folder's name that links to the external drive's *volume GUID*. A removable drive will still appear as whatever drive letter Windows gives it, but only the exact drive you mounted in Disk Management will ever show up in that directory!
This is gold. Thank you from the bottom of my heart; finally, I found the answer to my problem. Consider that, while browsing the web, I couldn't find any solution until I stumbled upon your comment. I also found a way to obtain the volume GUID directly from the command line by executing the command 'mountvol X: /L,' where 'X' is the drive letter for which we want to obtain the GUID.
By any chance, can you provide information regarding the creation of symlinks on Google Drive? I can't create them; I believe it might be a bug or something similar, but I can't find anything specific on the internet.
You can actually delete either the original file or hard link, as they both point to the same location on the file system. The "size on disk" as shown in the video, is because it is a small text file. A hard link shows the same size on disk as the original file. When you delete the original file, it won't remove it from the filesystem because there is still a "file" pointing to that location.
Worked in Unix and Linux and familiar with links, but learned something new about the Windows file system from your video. Thanks
This will come in handy when I get my 2nd ssd. I won't have to download my *epic games* games again because they don't have an option to move the game location from 1 place to another unlike steam
Yeah, but they should add that feature if they really want to compete with Steam (btw GOG let you move the games, you can move the games and let tell the GOG client you want to import a directory and done)
I remember using Junctions to do a split drive Windows install on Win7. Basically letting windows files be on the SSD while the user and program folders were Junctioned to a Hard Drive.
I crank the playback to 1.5x and speed-feed my brain on these tech-tips. Perfect choice by the way, on using the word, "resolved" at 6:02. It made my ears perk-up. Probably because I spent considerable time today correcting DNS issues. Anyways, great video!
i love the fact he visualizes the portals with blue and orange, goes to show you how much of an impact Portal made
great video
Man, this was explained so well. I got discouraged a moment ago because i wasn't sure exactly what I was looking for, but i noticed the symlink option tonight, and i assumed it was probably some type of link/redirect thing but I didn't know how to actually pull it off...and still don't... yet anyway... I'm still listening to ur video so hopefully I can learn it without the cmd prompt.
The only other video i found on this was by a Russian guy and o just couldn't follow it. So here I am. Thanks man.
Thank You for all of your videos that you did. I am enjoying all of them
It's been a long time since TJ showed me something I've never heard of before ...
TJ says "open the garage" !
IDK WHY
Familiar with symbolic links from my Unix (yes, pre-Linux) days. But the shift-right-click to bring up the 'copy as path' item - SO USEFUL and I never knew that existed until now! Thank you!!
I've done some similar things with this, but the use cases you gave here are super useful. This would help so much with some wonky situations.
Dude this video is so useful! Thank you for this❤️
I was so upset about having to safe my music twice, once in the music folder and once in the onedrive folder. But now i can just put symlinks in the onedrive.
Very cool tutorial, I wonder why they are a hidden feature and not a core feature.
Probably because a lot of users will just find it confusing and its use cases aren't so frequent
Most (if not all) Linux distros don't have shortcuts and just use symlinks.
Most (if not all) Linux distros don't have shortcuts and just use symlinks.
0:18 Yup, very familiar with this. It actually is extremely useful.
Use this to install software anywhere, just put the symlink in the forced install directory.
(and games should always be installed in a partition separate from the OS install partition)
I use symlinks to move "movies" folders from game installs over to a slower mechanical HDD, but keep the main game files on the speedy SSD. Saves space, and that game still 'thinks' everything is in the same place. Even works through Steam updates. Specifically, I use JUNCTIONS, or "soft links".
I've used links on Linux extensively and really loved them. I did not know they were available on Windows. Thanks.
TheoJoe never fails to make something that can feel very complex to understand into something easy and simple to understand
terrific video.. for linux users like me, symlinks (soft or hard) are not a mystery; but for windows users, this is probably an eye-opener. I did not even know that windows supports "real" links as opposed to shortcuts.
A useful thing about hard links, I can't change the GPU setting of a symbolic link of an exe file. Windows directly changes the original file, not the symlink one. But when I change the symbolic link with a hard link, the link becomes a whole new file for the OS and I can change its own GPU setting separately from the original file.
This is so useful for playing Minecraft via java on a dual GPU laptop :P
Finally, someone explained SymLinks in layman's terms. Thanks for the great explanation! I think I got it now.
Yow ThioJoe Have a great day.
1st!
wait a minute, how is your comment 2 hours early wtf
@@iquackattimes early access
ohh
@@iquackattimes hes a member
Nice informative video! Just earlier this week I was talking with a friend about how cool this feature is and how Linux apparently allows you to use symlinks by default rather than shortcuts.
Works wonders for getting rid of those stupid Adobe programs and nvidia/spotify cache from your main SSD.
This is actually useful for OneDrive.
From personal experiance if you use both windows and a unix based operating system do not put the symlink into your dropbox folder. I had it overwrite data because all of a sudden instead of the contents being there it was placed a a file of the symlink and yeah bye bye data. Rather do the route mentioned earlier in video and move the folder to dropbox and symlink at the original location
thanks Joe that's was helpful i had use junctions links without knowing any thing about the symbolic links
Kudos for the example 2:37... The very sole reason I've searched for this....
finally someone explains the types - was confused on junctions vs *presumably newer /d symlinks
I thought this feature wasn’t in Windows. I used to use it a lot in Mac OS and I was disappointed when I couldn’t do that in Windows. Thank you so much :)
I used these all the time on linux/unix-like-oses. I had no idea they existed in windows. Thanks so much
it should be at least check box in Window's "make link" for symlinks. Thanks for this video. Very useful.
I actually have used this before to allow a program to use files from another hard drive without the files needing to actually be located in the program files area for the program. It's a very powerful tool.
I couldn't get the /D option to work in Windows 11 - I just ended up with a link that wouldn't double-click and could not be accessed by apps.
Just swapping to /J worked fine though and I was very glad of the background that you gave.
At first I (a linux guy) thought: Whatever, I know what a symlink is. But then I realized that I didn't understand what a shortcut is. Thanks for that.
13:50 Well a few months later and I found my good use case for it, thanks for all the knowledge you provide in these videos!
Good one Joe. Instead of having a desktop full of icons, I made a couple of folders and put them in there. This helps me solve some of the quirks associated with doing that.
super solid refresher, easy to jump around in to understand. my file server will thank you sir.
Keep it up Thio!
I'm an old IT guy, but this is news to me!
Thanks for the video!
⭐⭐⭐⭐⭐
That was extremely helpful. Thanks a bunch.
you are the best techtuber on earth thio! keep up the good job :)
i use Link Shell Extension Software It just saves me from going to command prompt
Was about to comment the same, it turns symbolic links into something that anyone can use, if they understand the terminology involved; cmd scares of many people, and honestly, it's just a hastle generally
@@rondowar command lines don’t bite.
I liked this analogy of teleporting and going through a portal. Made it really clear to visualize. Nice!
Since I'm a programer, symlinks seem like pointers to me.
I wanted this feature in windows for such a long time and never knew it was already here 😭
30 years in computers and I've never used symlinks. They were always a mystery to me, ah thanks for unraveling them!
Subscriber from PHILIPPINES
A use case similar to the one you mentioned with a cloud synced file/folder... I use this feature to share files/folders with people on cloud services I don't use much. So a coworker only uses Dropbox and is apparently unable to switch... so our shared folder on Dropbox is symlinked to a folder in OneDrive on my end. I have them linked on a secondary PC, too, so I don't have Dropbox running on my main machine at all.
I learnt more about computer from ThioJoe than my computer science textbook
Ohh Man!! Yiu just saved me.. I was thinking how to make just a folder of mines to be available on the onedrove and not the whole of desktop folder.. Thank You sir so much..
i love how the stock photos are named
I watched this video at the time, knowing it would become useful. I finally got to use it!
Accessing OneDrive files on Arc browser from two different devices without changing the path each time... DONE!!
I used it right after ending the video, moved a bunch of games and software then created a symlink, now i have arount 50gb free space on my main drive :D
Absolutely loved this video, thank you.
symlinks are REALLY COOL.
I use them personally to keep all of my settings in all of my minecraft instances the same. If you play a lot of modded minecraft and switch between different instances constantly, they're a lifesaver when you don't wanna have to disable auto-jump every time you start up a new instance.
My biggest use of symlinks is so that I can have git repositories in one location and something that uses something within that repository somewhere else. For example I have a github repo that includes multiple minecraft datapacks that I developed, I clone the repo and create symlinks from the datapacks folder in my world to the datapack(s) within the repository
Ah, thanks, I was considering using some hard links for some files that I wanted to have in a git repo but which I wanted to keep available in the directory they were already in, without making that folder a git repo,
But I was worried that instead of modifying the file, git might like, delete and replace it with the modified version, and by doing so make it so the two files no longer point to the same thing,
But now that you mention that, perhaps a symlink would serve my purpose better?
@@drdca8263 either a symlink or a hardlink would likely work fine for that use case, I would probably recommend symlink just so it is clear in explorer that it is a link to another file, unless you specifically want the ability to move the original file around without breaking the link
@@vdvman1 thanks, after seeing your first comment I talked to my roommate about it and they also agreed that I should use a symlink, so that’s what I’ll do. Thanks again!
@@drdca8263 No worries! Hope it works out well for you
when i saw that thumbnail i knew exactly what the topic was going to be about. I love using junctions
cant stop returning to this vid
I leaned about symlinks when I tried to backup stuff with the cloud. Really cool. They are like mount points in Linux
Its super useful. I used this to sync World of Warcraft folders (profiles and add-ons) between different computers through Dropbox :)
Wow TJ!! This video is FIRE!! 🔥🔥🔥🔥🔥 Interesting content with excellent delivery and energy. Love you TJ, always look forward to your videos!!
this is best video on whole internet .thanks
Dropbox actually allows you to add files to be backed up that aren't located in the Dropbox folder. However, I get why Joe would want to use Dropbox as a relatable example for a use case of SymLinks. It could be some other cloud storage provides that doesn't provide this feature in their client or it could be a network/external storage scenario.
I have been using Link Shell Extension for ages for this feature. I didn't know Windows natively supported this!
Thio Joe: i would like to give a tip for gamers this link opertaion can be usefull for tricking the computer by creating junction folders from HDD drive to SSD and that will make Patching games on that hard drive goes faster as computer will work SSD along side the HDD together. For Example pink link the steam folder from where you installed it and drop it as junction on the faster drive you have in your system and that will let the computer think that the folder is installed in SSD drive were its acutally a junction folder , This method worked for me since that time my Patching and Verifying of updates went insane and its not only usefull for updating its also good for games i notice the openning time of it was faster than before since i did this method.
Hello. Great Video, I use it to create a Symblink of a Rom Folder from one drive, so I can save space when I'm not playing a specific game.... very useful indeed.
WARNING WARNING WARNING! I've been using symlinks for decades, nothing new, but very helpful to understand! great educational video. just know in a fringe case it bricked my high end PC. wait , how? it happened during windows 10 version upgrade. All I had was a symlink for Plex database to a SSD for faster response. The ssd was apparently having failures but SMART failed to warn me. during the windows automated upgrade, the drive must have failed beyond recovery, or boot loop fried it. the migration to new windows 10 version "hard" locked system for twelve hours, then ended up in a boot loop. of course I let the upgrade continue that night during that waiting period as I could tell it was making slow progress, similar to a chkdsk dealing with bad sectors. I ended up with an unfixable/unbootable (as per Microsoft support case) system. yes it is fringe case, but Microsoft confirmed,there is a bug with winpe (the OS running during special steps of upgrades) and symlink.
Hmm good to know