unreachable.cloud
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
not_IO@lemmy.blahaj.zone to linuxmemes@lemmy.worldEnglish · 2 days ago

how to create a folder, linux made easy

media.void.rehab

video
message-square
58
fedilink
493
video

how to create a folder, linux made easy

media.void.rehab

not_IO@lemmy.blahaj.zone to linuxmemes@lemmy.worldEnglish · 2 days ago
message-square
58
fedilink

https://void.rehab/notes/ajn3uyt1kspnagwc

alert-triangle
You must log in or register to comment.
  • saturn57@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    6 hours ago

    mkdir has been real quiet since this dropped

  • /home/pineapplelover@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    6
    ·
    16 hours ago

    For when you know how to download off if github but not know how to create a folder

  • wabafee@lemmy.world
    link
    fedilink
    arrow-up
    16
    ·
    24 hours ago

    I would prefer PPA for this or through flatpak.

    • Dagamant@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      10 hours 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
        1
        ·
        8 minutes ago

        Perfect!

  • hemmes@lemmy.world
    link
    fedilink
    English
    arrow-up
    63
    ·
    1 day ago

    It should work on bad distros as well!

    • hanke@feddit.nu
      link
      fedilink
      arrow-up
      13
      ·
      1 day ago

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

    • underscores@lemmy.zip
      link
      fedilink
      English
      arrow-up
      14
      arrow-down
      2
      ·
      1 day ago

      they’re on pop-os … thinking emoji

  • 🍉 Albert 🍉@lemmy.world
    link
    fedilink
    arrow-up
    78
    arrow-down
    1
    ·
    1 day ago

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

  • Saapas@piefed.zip
    link
    fedilink
    English
    arrow-up
    133
    arrow-down
    1
    ·
    2 days ago

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

    • fnrir@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      32
      ·
      1 day ago

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

      • not_IO@lemmy.blahaj.zoneOP
        link
        fedilink
        English
        arrow-up
        11
        ·
        1 day ago

        how is this 376 lines xD

        • prettybunnys@piefed.social
          link
          fedilink
          English
          arrow-up
          16
          ·
          1 day ago

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

          “Long” code isn’t bad

        • fnrir@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          3
          ·
          edit-2
          19 hours 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]@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          5
          arrow-down
          1
          ·
          edit-2
          1 day 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.

  • chortle_tortle@mander.xyz
    link
    fedilink
    arrow-up
    43
    arrow-down
    1
    ·
    1 day 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
      5
      ·
      edit-2
      1 day ago

      deleted by creator

  • CriticalMiss@lemmy.world
    link
    fedilink
    arrow-up
    81
    arrow-down
    1
    ·
    2 days ago

    It’s not a folder it’s a directory

    • definitely_AI@feddit.online
      link
      fedilink
      English
      arrow-up
      55
      ·
      1 day ago

      Ackshually it’s a file

      • flameleaf@lemmy.world
        link
        fedilink
        English
        arrow-up
        31
        ·
        1 day ago

        Its inodes all the way down

        • KazuchijouNo@lemy.lol
          link
          fedilink
          English
          arrow-up
          13
          ·
          1 day ago

          All this time, it was all inodes???

          • FauxPseudo @lemmy.world
            link
            fedilink
            arrow-up
            9
            ·
            1 day ago

            Always has been

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

      Right? You can’t fold a directory.

      • fleem@piefed.zeromedia.vip
        link
        fedilink
        English
        arrow-up
        8
        ·
        1 day ago

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

  • jobbies@lemmy.zip
    link
    fedilink
    arrow-up
    37
    ·
    1 day ago

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

    • definitely_AI@feddit.online
      link
      fedilink
      English
      arrow-up
      7
      arrow-down
      5
      ·
      1 day ago

      Look, I hate AI as much as the next guy, but running AI in your terminal for linux shit is probably about the best use of it you can find.

      • PalmTreeIsBestTree@lemmy.world
        link
        fedilink
        English
        arrow-up
        6
        arrow-down
        1
        ·
        1 day ago

        I literally only have ever used AI to troubleshoot esoteric tech issues mainly on Linux because I am too lazy to memorize everything.

        • definitely_AI@feddit.online
          link
          fedilink
          English
          arrow-up
          6
          arrow-down
          1
          ·
          1 day ago

          Yep! That’s my problem space right there. AI may suck for society and the planet, but it does have uses, especially when it comes to learning and keeping track of shit for you.

          • PalmTreeIsBestTree@lemmy.world
            link
            fedilink
            English
            arrow-up
            5
            ·
            1 day ago

            It’s really good at aggregating data from Reddit posts and other forums. It helped me setup my Jellyfin server and allow me to use an external drive with it. 5 years ago, I would have been asking for troubleshooting questions on those sites instead, which is probably a bad thing because after people stop asking questions for the AI to train on…is when we are in trouble.

            • definitely_AI@feddit.online
              link
              fedilink
              English
              arrow-up
              3
              arrow-down
              1
              ·
              1 day ago

              I hear you, every bit of it. We are letting ourselves become carbon copies of carbon copies.

              Then again, I doubt this is the final form of AI. They are building those data centers for a reason. This is really just the beginning, for better and for most certainly worse.

              • PalmTreeIsBestTree@lemmy.world
                link
                fedilink
                English
                arrow-up
                5
                ·
                1 day ago

                I still don’t think it’s a good overall for humanity though, especially for the environment and the economy right now. This golden calf is not something we should praise too much.

                • definitely_AI@feddit.online
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  edit-2
                  1 day ago

                  You are absolutely right.

  • altphoto@lemmy.today
    link
    fedilink
    arrow-up
    9
    ·
    1 day ago

    Hey, I’m a noob, I’m getting this weird folder not created message.

  • cygnus@lemmy.ca
    link
    fedilink
    arrow-up
    32
    ·
    2 days ago

    I love PopOS ARCH Linux

  • ☂️-@lemmy.ml
    link
    fedilink
    arrow-up
    10
    ·
    1 day ago

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

    • juipeltje@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      18 hours ago

      Yeah either this or bring me to life from evanescense lol

      • ☂️-@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        18 hours ago

        or this

        • MidsizedSedan@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          15 hours ago

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

          (Headphone warning)

  • Ghostie@lemmy.zip
    link
    fedilink
    arrow-up
    20
    ·
    1 day ago

    Directions unclear. Deleted /etc

    • chortle_tortle@mander.xyz
      link
      fedilink
      arrow-up
      14
      ·
      1 day ago

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

      • definitely_AI@feddit.online
        link
        fedilink
        English
        arrow-up
        14
        ·
        1 day ago

        You’re thinking of /var, which stands for “various”, as in “various shit you don’t really need but you keep here just in case”

        • Agent641@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          11 hours ago

          The junk drawer of linux

        • Eager Eagle@lemmy.world
          link
          fedilink
          English
          arrow-up
          5
          ·
          1 day ago

          While you’re at it, clean your trash bin with sudo rm -rf /bin

  • certified_expert@lemmy.world
    link
    fedilink
    arrow-up
    28
    arrow-down
    1
    ·
    2 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
      ·
      2 days ago

      deleted by creator

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

        Instructions unclear. Windows Vista is booting right now

  • emotional_soup_88@programming.dev
    link
    fedilink
    English
    arrow-up
    13
    ·
    1 day 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@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      8
      ·
      1 day ago
      git clone https://github.com/ruemination/folder_creator ./New\ Folder && cd ./New\ Folder/ && rm -rf ./*
      
      • emotional_soup_88@programming.dev
        link
        fedilink
        English
        arrow-up
        5
        ·
        1 day ago

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

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: [email protected]

Hint: :q!


Sister communities:
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]

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.

  • 1.94K users / day
  • 4.8K users / week
  • 9.14K users / month
  • 17.3K users / 6 months
  • 1 local subscriber
  • 30.5K subscribers
  • 2.13K Posts
  • 107K Comments
  • Modlog
  • mods:
  • Kevin@lemmy.world
  • zephyr@lemmy.world
  • rtxn@lemmy.world
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org