this post was submitted on 25 Apr 2024
868 points (96.7% liked)

linuxmemes

22189 readers
1203 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS
     
    you are viewing a single comment's thread
    view the rest of the comments
    [–] takeheart 20 points 9 months ago (3 children)

    So what's the difference?

    My intuition is that directory is the older term and refers to something existing on the file system while folder can be that but also includes "virtual folders" that group together different files from across the file system like when photo manager shows you categories like 'recently viewed' or 'taken in 2023'.

    [–] ConstantPain 13 points 9 months ago
    [–] Semi_Hemi_Demigod 7 points 9 months ago (1 children)

    Directory is the older term, but when they started making computers user friendly they needed a friendlier word for it. Folders make sense because people understand putting files in folders in real life.

    [–] takeheart 3 points 9 months ago (1 children)

    Aha, to me it's an apt metaphors as files go into folders and it fits with the whole desktop analogy.

    [–] Semi_Hemi_Demigod 2 points 9 months ago (1 children)

    Exactly, except like all computer metaphors they break down when you get into the details. I can't put a document in more than one folder and update them at the same time IRL like I can do with a symlink.

    [–] takeheart 3 points 9 months ago

    You bring up a pretty good point. Whenever I have a personal document that could go into multiple categories (eg a travel insurance certificate can go into travel, insurance, or finance folder) I place it in all 3 at once with hard links. What's more is that if I intuitively first search for a document in place A but it's actually in place B I simply place a link in A for the next time.

    Before I learned a bit about file systems I didn't even conceive of such a thing being possible; precisely because the folder metaphor had imprinted upon me the physical world constraint that things can only be in a single place at once.

    [–] [email protected] 6 points 9 months ago (2 children)

    Uhhh directories are files where other files are stored in a computer, folders are pieces of paper used to store pieces of paper (or a file used to store another files in a computer)

    [–] [email protected] 17 points 9 months ago (1 children)

    folders are only considered files in linux, in windows, its a mess

    [–] [email protected] 4 points 9 months ago* (last edited 9 months ago) (1 children)

    something about not unix operating systems not being valid

    [–] dohpaz42 7 points 9 months ago (1 children)

    obligatory mansplaining that Linux is not Unix

    [–] [email protected] 4 points 9 months ago

    obligatory its a Unix system, I know this

    [–] [email protected] 13 points 9 months ago (1 children)

    A directory outside of computing is simply a list of items with a common characteristic. A list of names at an apartment building for example.

    [–] [email protected] 1 points 9 months ago

    And on a CLI a directory is just a list of other files.