this post was submitted on 21 Feb 2025
62 points (98.4% liked)

Linux

50368 readers
1361 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

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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.

top 18 comments
sorted by: hot top controversial new old
[–] iriyan@lemmy.ml 1 points 1 hour ago

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

[–] krolden@lemmy.ml 21 points 17 hours ago (2 children)

Wait until you learn about hard links

[–] lengau@midwest.social 9 points 16 hours ago (1 children)
[–] taaz@biglemmowski.win 10 points 14 hours ago (3 children)

Uh I think you meant bind mounts lol

[–] lengau@midwest.social 6 points 6 hours ago

Stupid autocorrect!

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

[–] caseyweederman@lemmy.ca 2 points 7 hours ago

They might have but I certainly don't

[–] meyotch@slrpnk.net 9 points 11 hours ago

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.

[–] hornedfiend@sopuli.xyz 1 points 16 hours ago

came here for this

[–] wizardbeard@lemmy.dbzer0.com 33 points 23 hours ago (3 children)

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.

[–] merthyr1831@lemmy.ml 2 points 2 hours ago

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

[–] iriyan@lemmy.ml 1 points 1 hour ago

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.

[–] ChickenAndRice@sh.itjust.works 11 points 22 hours ago

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.

[–] ChickenAndRice@sh.itjust.works 22 points 1 day ago (2 children)
[–] incogtino@lemmy.zip 4 points 22 hours ago (1 children)

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

[–] entropicdrift@lemmy.sdf.org 1 points 7 hours ago
[–] ArsonButCute@lemmy.dbzer0.com 4 points 22 hours ago (1 children)

"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.works 5 points 22 hours ago* (last edited 22 hours ago)

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

Edit: I did some rudimentary searching, apparently it's a meta distro that let's you mix and match stuff from multiple linux distros: https://bedrocklinux.org/

That's actually pretty wild. I might play around with this in the future

[–] JTskulk@lemmy.world 11 points 23 hours ago

protip: put bind -s 'set mark-symlinked-directories on' in your ~/.bashrc and also bind -s 'set completion-ignore-case on' because why not :)