this post was submitted on 29 Mar 2025
20 points (95.5% liked)
Linux
52665 readers
1500 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
~~You want
readlink -f
rather thanls -l
.~~ ++OK, actually not exactly.readlink
won’t print path to the symlink so it’s not as straightforward.++Also, you want
+
infind ... -exec ... +
rather than;
.At this point I feel committed to making readlink work. ;) Here’s the script you want:
and execute it as:
because
zsh
I swapped out~
->$HOME
. In addition to some permission denied that you always getfind
ing over the home dir, I get these weird hits:lib atomic is something I've heard of vaguely but certainly not anything I use. I couldn't identify any way this file was doing anything outside the
~/.konan
dir.the CSS files there were a few different ones in a couple different Firefox profiles. it's the user customization. But I don't think it should have anything to do with the directory I was asking for.
If I give it a bit more of a hint, telling to look in
~/.config
specifically, now I get some (but not all) the links I expect.And suggesting it searches in the
.konan
dir where it found lib atomimc, it now doesn't find anything.Could be all kinds of things getting the way. Different versions of relevant tools, filesystems/setups, permissions...
You could pass
$1
and$got
through$(realpath -P -- ...)
to make sure all the path are in canonical form. Though now that I’m thinking about it,stat
is probably a better option anyway: