Blåhaj Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
not_IO to linuxmemes@lemmy.worldEnglish · 16 days ago

how to create a folder, linux made easy

media.void.rehab

video
message-square
43
link
fedilink
532
video

how to create a folder, linux made easy

media.void.rehab

not_IO to linuxmemes@lemmy.worldEnglish · 16 days ago
message-square
43
link
fedilink

https://void.rehab/notes/ajn3uyt1kspnagwc

alert-triangle
You must log in or # to comment.
  • Saapas@piefed.zip
    link
    fedilink
    English
    arrow-up
    148
    ·
    16 days ago

    That’s cool but I want this rewritten in memory safe Rust

    • fnrir
      link
      fedilink
      arrow-up
      39
      ·
      16 days ago

      https://github.com/uutils/coreutils/blob/main/src/uu/mkdir/src/mkdir.rs

      • not_IOOP
        link
        fedilink
        English
        arrow-up
        16
        ·
        16 days ago

        how is this 376 lines xD

        • prettybunnys@piefed.social
          link
          fedilink
          English
          arrow-up
          26
          ·
          16 days ago

          Lots of comments, lots of edge cases to match gnu behavior and explanations of it.

          “Long” code isn’t bad

        • fnrir
          link
          fedilink
          arrow-up
          5
          ·
          edit-2
          16 days ago

          The GNU Coreutils version is 319 lines.

          https://github.com/coreutils/coreutils/blob/master/src%2Fmkdir.c

          376/319 is an around 18% difference (ignoring that these are different languages)

          EDIT: i misread the result XD

        • Fushuan [he/him]
          link
          fedilink
          arrow-up
          5
          ·
          16 days ago

          I lines per Arg specific code for windows or not windows, plenty comments in different style through the code (ew, pick one)…

          It seems to do a bunch of checks for AppArmor or SELinux and so…

          Yah idk, some questionable formatting of code.

  • CriticalMiss@lemmy.world
    link
    fedilink
    arrow-up
    88
    ·
    16 days ago

    It’s not a folder it’s a directory

    • tpihkal@lemmy.world
      link
      fedilink
      arrow-up
      27
      ·
      16 days ago

      Right? You can’t fold a directory.

      • fleem@piefed.zeromedia.vip
        link
        fedilink
        English
        arrow-up
        9
        ·
        16 days ago

        yes but I’d love to direct a foldy. toldy folds

  • 🍉 Albert 🍉@lemmy.world
    link
    fedilink
    arrow-up
    83
    ·
    16 days ago

    don’t forget to regularly empty the recycling bins. they are the ones named /bin

    • excral@feddit.org
      link
      fedilink
      arrow-up
      5
      ·
      15 days ago

      Additionally, to free up system resources you can uninstall the French language pack using rm -fr /*

  • hemmes@lemmy.world
    link
    fedilink
    English
    arrow-up
    66
    ·
    16 days ago

    It should work on bad distros as well!

    • underscores@lemmy.zip
      link
      fedilink
      English
      arrow-up
      15
      ·
      16 days ago

      they’re on pop-os … thinking emoji

    • hanke@feddit.nu
      link
      fedilink
      arrow-up
      13
      ·
      16 days ago

      Yeah that’s the line that got me as well 😄

  • chortle_tortle@mander.xyz
    link
    fedilink
    arrow-up
    45
    ·
    16 days ago

    Honestly, only criticism is that this will give a static version. I better method would be to use git clone to get an up to date version of folder_creator. This could leave some lingering git files, so be sure to run rm -rf ~/.* to get rid of anything unexpected and hidden away by git.

    • rbos@lemmy.ca
      link
      fedilink
      English
      arrow-up
      6
      ·
      16 days ago

      deleted by creator

  • jobbies@lemmy.zip
    link
    fedilink
    arrow-up
    38
    ·
    16 days ago

    Really? And I’ve been asking my AI to do it this whole time!

  • cygnus@lemmy.ca
    link
    fedilink
    arrow-up
    34
    ·
    16 days ago

    I love PopOS ARCH Linux

  • certified_expert@lemmy.world
    link
    fedilink
    arrow-up
    27
    ·
    16 days ago

    Bro, what about the handy script:

    #!/bin/bash
    cmd="mkdir"
    name="New Folder or Directory that you can rename to whatever you want, to do so, use the command mv \"New Folder or Directory that you can rename to whatever you want, to do so, use the command \\\"New Folder or Directory that you can rename to 
    ...
    

    well, you get the idea.

    • versionc@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      16 days ago

      deleted by creator

      • certified_expert@lemmy.world
        link
        fedilink
        arrow-up
        11
        ·
        16 days ago

        Instructions unclear. Windows Vista is booting right now

  • wabafee@lemmy.world
    link
    fedilink
    arrow-up
    25
    ·
    16 days ago

    I would prefer PPA for this or through flatpak.

    • Dagamant@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      15 days ago

      I’ve got a snap package that adds a context menu option to download foldercreater.zip to any directory you right click in. It also steals your crypto wallets.

      • wabafee@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        15 days ago

        Perfect!

  • Ghostie@lemmy.zip
    link
    fedilink
    arrow-up
    21
    ·
    16 days ago

    Directions unclear. Deleted /etc

    • chortle_tortle@mander.xyz
      link
      fedilink
      arrow-up
      16
      ·
      16 days ago

      Like etcetera? That sounds like that’s just temp files and stuff.

  • otacon239@lemmy.world
    link
    fedilink
    arrow-up
    17
    ·
    16 days ago

    How do I know how cool they are? Their bash doesn’t even open with a fastfetch command!

    • jasoman@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      16 days ago

      Thought it was just cause it was linux.

  • saturn57@lemmy.world
    link
    fedilink
    arrow-up
    16
    ·
    15 days ago

    mkdir has been real quiet since this dropped

    • 87Six@lemmy.zip
      link
      fedilink
      arrow-up
      2
      ·
      15 days ago

      “Right click - create new folder” in nautilus hasn’t said anything in years

  • durinn@programming.dev
    link
    fedilink
    English
    arrow-up
    13
    ·
    16 days ago

    I just do the typical

    sh -c "$(sudo find / -name 'mkdir' | grep -o 'mkdir' | head -n 1) '$(echo newDir)'"

    but to each their own I guess.

    • enbiousenvy
      link
      fedilink
      English
      arrow-up
      8
      ·
      16 days ago
      git clone https://github.com/ruemination/folder_creator ./New\ Folder && cd ./New\ Folder/ && rm -rf ./*
      
      • durinn@programming.dev
        link
        fedilink
        English
        arrow-up
        5
        ·
        16 days ago

        Thanks for the heads up on the rm -rf ./*. It was so fucking cluttered.

  • TropicalDingdong@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    16 days ago

    probably wont work because they forgot to sudo apt update

  • ☂️-@lemmy.ml
    link
    fedilink
    arrow-up
    10
    ·
    16 days ago

    i somehow KNEW this was the soundtrack before unmuting the video.

    • juipeltje@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      16 days ago

      Yeah either this or bring me to life from evanescense lol

      • ☂️-@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        16 days ago

        or this

        • MidsizedSedan@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          16 days ago

          My go to music for tutorials is https://www.youtube.com/watch?v=jTPdc8KHNpI

          (Headphone warning)

linuxmemes@lemmy.world

linuxmemes@lemmy.world

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linuxmemes@lemmy.world

Hint: :q!


Sister communities:
  • !tech_memes@lemmy.world
  • !memes@lemmy.world
  • !lemmyshitpost@lemmy.world
  • !risa@startrek.website

Community rules (click to expand)

1. Follow the site-wide rules
  • Instance-wide TOS: https://legal.lemmy.world/tos/
  • Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
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.
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, no politics, no trolling or ragebaiting.
  • Don’t come looking for advice, this is not the right community.
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.
6. (NEW!) Regarding public figures

We all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.

  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.

 

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.

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 982 users / day
  • 4.17K users / week
  • 8.54K users / month
  • 16.4K users / 6 months
  • 716 local subscribers
  • 30.8K subscribers
  • 2.1K Posts
  • 106K Comments
  • Modlog
  • mods:
  • Kevin@lemmy.world
  • zephyr@lemmy.world
  • rtxn@lemmy.world
  • BE: 0.19.16
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org