Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Linux
  3. It took me way too long to realize symlinks were a thing and why I couldn't understand my Linux directories

It took me way too long to realize symlinks were a thing and why I couldn't understand my Linux directories

Scheduled Pinned Locked Moved Linux
linux
22 Posts 16 Posters 110 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A [email protected]

    "Overdoing it" doesn't exist when you understand what it can accomplish. Bedrock Linux for example is based on symlink abuse from what I understand

    chickenandrice@sh.itjust.worksC This user is from outside of this forum
    chickenandrice@sh.itjust.worksC This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #6

    I'll have to look into that distro later. Anything particularly noteworthy about it, besides the symlink abuse?

    1 Reply Last reply
    0
    • W [email protected]

      Don't feel dumb! This is just normal learning!

      Symlinks are possible in Windows (at least in NTFS filesystems) but to my knowledge they aren't used by anything official.

      Windows's weird "psuedo folders" thing it does with "Documents" etc is something else entirely.

      chickenandrice@sh.itjust.worksC This user is from outside of this forum
      chickenandrice@sh.itjust.worksC This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #7

      Adding on to Windows: There's no way (in the UI) to add symlinks. In Windows 10, symlinks must be created in an administrative command prompt. It is pretty damn clunky.

      1 Reply Last reply
      0
      • chickenandrice@sh.itjust.worksC [email protected]

        Hey no worries, we all start somewhere.

        Now that you know about symlinks, you can get creative with them: https://sparkventure.net/the-versatility-of-symbolic-links-in-linux-a-guide-with-examples/

        The hard part now is to avoid overdoing it: https://www.ceos3c.com/linux/understanding-linux-symbolic-links-a-beginners-guide/#best-practices-and-common-pitfalls

        I This user is from outside of this forum
        I This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #8

        That beginners guide says to avoid creating circular symlinks. What if, entirely hypothetically, I already have a circular symlink?

        entropicdrift@lemmy.sdf.orgE 1 Reply Last reply
        0
        • T [email protected]

          I mean I feel stupid typing it now, but I've been using Windows since I was 5 years old, and Linux for about 30 days. It was not apparent to me that many of my folders were actually shortcuts to stuff in my user directory, and now that I know to look out for them the location of my applications make sooo much more sense. I just sorta jumped into linux and googled problems as they arose, but now I'm thinking I need to read a book on this or something lol

          krolden@lemmy.mlK This user is from outside of this forum
          krolden@lemmy.mlK This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #9

          Wait until you learn about hard links

          L H 2 Replies Last reply
          0
          • krolden@lemmy.mlK [email protected]

            Wait until you learn about hard links

            L This user is from outside of this forum
            L This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #10

            And bird mounts

            taaz@biglemmowski.winT 1 Reply Last reply
            0
            • krolden@lemmy.mlK [email protected]

              Wait until you learn about hard links

              H This user is from outside of this forum
              H This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #11

              came here for this

              1 Reply Last reply
              0
              • L [email protected]

                And bird mounts

                taaz@biglemmowski.winT This user is from outside of this forum
                taaz@biglemmowski.winT This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #12

                Uh I think you meant bind mounts lol

                M C L 3 Replies Last reply
                0
                • taaz@biglemmowski.winT [email protected]

                  Uh I think you meant bind mounts lol

                  M This user is from outside of this forum
                  M This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #13

                  He said BIRD mounts and he meant it. It is up to us to rise to the level where we too can use bird mounts.

                  1 Reply Last reply
                  0
                  • taaz@biglemmowski.winT [email protected]

                    Uh I think you meant bind mounts lol

                    C This user is from outside of this forum
                    C This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #14

                    They might have but I certainly don't

                    1 Reply Last reply
                    0
                    • I [email protected]

                      That beginners guide says to avoid creating circular symlinks. What if, entirely hypothetically, I already have a circular symlink?

                      entropicdrift@lemmy.sdf.orgE This user is from outside of this forum
                      entropicdrift@lemmy.sdf.orgE This user is from outside of this forum
                      [email protected]
                      wrote on last edited by
                      #15

                      Delete one

                      I 1 Reply Last reply
                      0
                      • taaz@biglemmowski.winT [email protected]

                        Uh I think you meant bind mounts lol

                        L This user is from outside of this forum
                        L This user is from outside of this forum
                        [email protected]
                        wrote on last edited by
                        #16

                        Stupid autocorrect!

                        Err... I mean uhh... No, I mean bird mounts! Don't you like mounting birds in your filesystem?

                        1 Reply Last reply
                        0
                        • W [email protected]

                          Don't feel dumb! This is just normal learning!

                          Symlinks are possible in Windows (at least in NTFS filesystems) but to my knowledge they aren't used by anything official.

                          Windows's weird "psuedo folders" thing it does with "Documents" etc is something else entirely.

                          M This user is from outside of this forum
                          M This user is from outside of this forum
                          [email protected]
                          wrote on last edited by
                          #17

                          I just assumed they were the same as "shortcuts" on Windows, coz to the end user they're not all that different - File that points you to a different file or directory when you open it

                          1 Reply Last reply
                          0
                          • W [email protected]

                            Don't feel dumb! This is just normal learning!

                            Symlinks are possible in Windows (at least in NTFS filesystems) but to my knowledge they aren't used by anything official.

                            Windows's weird "psuedo folders" thing it does with "Documents" etc is something else entirely.

                            I This user is from outside of this forum
                            I This user is from outside of this forum
                            [email protected]
                            wrote on last edited by
                            #18

                            I think ntfs does some weird shit with translating names of files in different languages too, and maybe they are simlinks

                            Say desktop is translated to ntesctop in some language, the real file is still desktop but there is a link as ntesctop --> desktop so without changing the system it flips from one language to another. I am not sure, I haven't really spent much time on it, in recent years I did some installations at work but never got to play with it much.

                            P 1 Reply Last reply
                            0
                            • T [email protected]

                              I mean I feel stupid typing it now, but I've been using Windows since I was 5 years old, and Linux for about 30 days. It was not apparent to me that many of my folders were actually shortcuts to stuff in my user directory, and now that I know to look out for them the location of my applications make sooo much more sense. I just sorta jumped into linux and googled problems as they arose, but now I'm thinking I need to read a book on this or something lol

                              I This user is from outside of this forum
                              I This user is from outside of this forum
                              [email protected]
                              wrote on last edited by
                              #19

                              There are some really old introductory unix texts of how the system is structured and why, 99% of this stuff is still true for most linux (except some weird experimental alternatives where people tried to create ms-unix ).
                              The basic terminal commands should also be useful, and help you understand. For example open a terminal and see the command for copy (cp) or (mv) or mkdir rm rmdir and use -h for the help of the options of each (if -h doesn't work then --help does) and then extensive documentation is found by name of command after "man" for manual
                              ex: man chmod

                              One of the most magical things that happens in unix is mount, where you
                              create a directory (mount point /mnt), take a device like your usb stick volume named sdb1

                              mount /dev/sdb1 /mnt

                              ls -lah /mnt

                              say you create /tmp/disks and in it a b c d e and mount 5 disks in a through e and it appears as one subdirectory /tmp/disks

                              Instead of looking at a file browser and something going cling-clong and appearing as a volume, what dumb people do

                              1 Reply Last reply
                              0
                              • entropicdrift@lemmy.sdf.orgE [email protected]

                                Delete one

                                I This user is from outside of this forum
                                I This user is from outside of this forum
                                [email protected]
                                wrote on last edited by
                                #20

                                I created a symlink to the directory the symlink is in. If I try and simply 'delete' the symlink in a file browser it tells me that gigs of data will be deleted

                                entropicdrift@lemmy.sdf.orgE 1 Reply Last reply
                                0
                                • I [email protected]

                                  I created a symlink to the directory the symlink is in. If I try and simply 'delete' the symlink in a file browser it tells me that gigs of data will be deleted

                                  entropicdrift@lemmy.sdf.orgE This user is from outside of this forum
                                  entropicdrift@lemmy.sdf.orgE This user is from outside of this forum
                                  [email protected]
                                  wrote on last edited by
                                  #21

                                  You'll want to delete it from the CLI, then. Try the unlink command

                                  1 Reply Last reply
                                  0
                                  • I [email protected]

                                    I think ntfs does some weird shit with translating names of files in different languages too, and maybe they are simlinks

                                    Say desktop is translated to ntesctop in some language, the real file is still desktop but there is a link as ntesctop --> desktop so without changing the system it flips from one language to another. I am not sure, I haven't really spent much time on it, in recent years I did some installations at work but never got to play with it much.

                                    P This user is from outside of this forum
                                    P This user is from outside of this forum
                                    [email protected]
                                    wrote on last edited by
                                    #22

                                    I don't think that does an actual rewite point. A lot of the localisation features were done using file explorer. You can even "localise" folders yourself using custom desktop.ini files. But those changes only showed in file explorer.

                                    Now email! In exchange the standard folders such as inbox are localised, but don't have a fixed alias. So if doing administration you need to know the language of a mailbox to know the name of say the Calendar folder, so you can update permissions.

                                    1 Reply Last reply
                                    0
                                    • System shared this topic on
                                    Reply
                                    • Reply as topic
                                    Log in to reply
                                    • Oldest to Newest
                                    • Newest to Oldest
                                    • Most Votes


                                    • Login

                                    • Login or register to search.
                                    • First post
                                      Last post
                                    0
                                    • Categories
                                    • Recent
                                    • Tags
                                    • Popular
                                    • World
                                    • Users
                                    • Groups