Read the statement by Michael Teeuw here.
I broke something
-
@BKeyport said in I broke something:
symlink
I’m not sure to exactly get what a simlink is, what’s the difference with a simple copy ?
-
@killerjoe34 linux file systems give you the ability to create a file as a LINK to another file somewhere else…
so you only have one copy, but multiple instances… changing the root file makes it look like all the linked files changed too
see the ln command
-
Ok, I read the man page but still don’t get it, even in french :D :(
You’re saying that if the root file is modified, it also modifies the linked one(s) or does it make another copy ?
Cause it would be perfect in that case, keeping track of every modification to be able to step back.Thanks for your explanations :)
-
@killerjoe34 no, the link makes it look like all the secondary files ARE the root file. so actually changing ANY changes them all, there is ONLY one actual file. but erasing the linked file does NOT erase the root file.
try this
mkdir ~/foo mv ~/MagicMirror/config/config.js foo cd ~/MagicMirror/config ln -s ~/foo/config.js config.js
now you have your file in ~/foo
but it LOOKS like it is also in ~/MagicMirror/configedit one, change the date/time format
restart MM
voila
edit the other one and change it back
restart MM -
-
@killerjoe34 you can also link folders
if you do (in the config folder where I just set a link)
ls -laF
will show u the file is linked, and where to
-
@sdetweil said in I broke something:
@killerjoe34 you can also link folders
if you do (in the config folder where I just set a link)
ls -laF
will show u the file is linked, and where to
Ok, I’ll have a look at that, thx again !