Blåhaj Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Possibly linux@lemmy.zip to linuxmemes@lemmy.worldEnglish · 1 year ago

Just a PSA

lemmy.zip

message-square
95
link
fedilink
956

Just a PSA

lemmy.zip

Possibly linux@lemmy.zip to linuxmemes@lemmy.worldEnglish · 1 year ago
message-square
95
link
fedilink
alert-triangle
You must log in or register to comment.
  • arandomthought@sh.itjust.works
    link
    fedilink
    arrow-up
    56
    ·
    1 year ago

    If they don’t understand this, can we even call it intelligent life?

    • partial_accumen@lemmy.world
      link
      fedilink
      arrow-up
      65
      ·
      1 year ago

      Maybe they use Emacs.

      Bonus: I googled “emacs” to make sure I got the capitalization right for the post and Google is throwing shade:

      • jmcs@discuss.tchncs.de
        link
        fedilink
        arrow-up
        25
        ·
        1 year ago

        Google does the opposite of “vi”. Some people just like to watch the world burn.

        • pirat@lemmy.world
          link
          fedilink
          arrow-up
          4
          ·
          1 year ago

          I misread “the world bum”

          The term “keming” is sometimes used informally to refer to poor kerning (the letters r and n placed too close together being easily mistaken for the letter m).

          Wikipedia: Kerning

      • TurnItOff_OnAgain@lemmy.world
        link
        fedilink
        English
        arrow-up
        14
        ·
        1 year ago

        Nano forever!

        • WhiskyTangoFoxtrot@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          1 year ago

          ed is the standard text editor.

      • hemko@lemmy.dbzer0.comBanned
        link
        fedilink
        English
        arrow-up
        7
        ·
        edit-2
        1 year ago

        Removed by mod

        • dukk@programming.dev
          link
          fedilink
          arrow-up
          6
          ·
          1 year ago

          It’s the other way around, too.

          Not as true though.

          • hemko@lemmy.dbzer0.comBanned
            link
            fedilink
            English
            arrow-up
            3
            ·
            edit-2
            1 year ago

            Removed by mod

      • dubyakay@lemmy.ca
        link
        fedilink
        arrow-up
        6
        ·
        1 year ago

        Maybe it’s time to stop using GOOG

      • Possibly linux@lemmy.zipOP
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 year ago

        duck.com

      • Willem@kutsuya.dev
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        oof

      • Octopus1348@lemy.lol
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        I don’t know how people get this. I tried but it didn’t do this.

        • Skyhighatrist@lemmy.ca
          link
          fedilink
          arrow-up
          6
          ·
          edit-2
          1 year ago

          Strange, I just tried and got the vi suggestion. And, googling vi gave me an emacs suggestion. So shade all around!

      • hemko@lemmy.dbzer0.comBanned
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        1 year ago

        Removed by mod

      • Aurenkin@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        Maybe they use Emacs.

        Exactly

      • arandomthought@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Well, then my point still stands.
        Jk, don’t hurt me please!

    • Transient Punk@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Truth

  • MTK@lemmy.worldBanned
    link
    fedilink
    arrow-up
    36
    ·
    1 year ago

    I just shoot myself whenever I want to leave vim

    • iAvicenna@lemmy.world
      link
      fedilink
      arrow-up
      15
      ·
      1 year ago

      You don’t need to be so drastic just shut down the electricity by the main switch

      • GoosLife@lemmy.world
        link
        fedilink
        arrow-up
        16
        ·
        1 year ago

        I rent a place where I don’t have direct access to the main switch, so what I do is I just stop paying utilities until Vim closes :)

        • EuroNutellaMan@lemmy.world
          link
          fedilink
          arrow-up
          6
          ·
          1 year ago

          Or just shoot the main switch if you at least have a line of sight on it

      • vrighter@discuss.tchncs.de
        link
        fedilink
        arrow-up
        9
        ·
        1 year ago

        you can just unplug your pc: and that way you won’t incur downtime for the rest of the house.

    • /home/pineapplelover@lemm.eeBanned
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      You haven’t shot yourself yet though so you’re still in vim

      • MTK@lemmy.worldBanned
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        You don’t know!

  • vsis@feddit.cl
    link
    fedilink
    English
    arrow-up
    33
    ·
    1 year ago

    wrong: you press esc multiple times to make sure you are in normal mode.

    • treadful@lemmy.zip
      link
      fedilink
      English
      arrow-up
      13
      ·
      1 year ago

      At least 3 times. 5 to make sure.

  • Doctor xNo@r.nf
    link
    fedilink
    English
    arrow-up
    27
    ·
    1 year ago

    sudo nano

    • hemko@lemmy.dbzer0.comBanned
      link
      fedilink
      English
      arrow-up
      24
      ·
      edit-2
      1 year ago

      Removed by mod

      • Doctor xNo@r.nf
        link
        fedilink
        English
        arrow-up
        12
        ·
        edit-2
        1 year ago

        Why?

        Files from user: nano

        Files from root: sudo nano

        Files from another user: sudo nano (and if new sudo chown after)… 😂

        Never had any problems with this in over 10 years… 😅😂

        • Hawk@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          15
          ·
          1 year ago

          Doing sudo nano will not load your user configuration, sudoedit will. I had plenty of problems with this, but I assume you don’t have any custom configuration.

          • Samuel C@lemmy.world
            link
            fedilink
            arrow-up
            9
            ·
            edit-2
            1 year ago

            One reason why sometime I don’t do sudoedit is that I make a lot of changes to the config/restart service/see it works/edit etc… sudoedit only write to the file when exiting, so that flow won’t work…

            for example when having adding a new host on nginx and some configuration and see if everything work (sudo vim/systemc nginx restart/curl https:// domain loop)

            but yeah in general i’ll just use sudoedit (which alias to se for me) for my root editing

          • Doctor xNo@r.nf
            link
            fedilink
            English
            arrow-up
            4
            ·
            edit-2
            1 year ago

            I just have a root custom config too. 🤷‍♂️ This even allows me to easily use different configs for root than for the user.

            Made with ‘sudo nano’, fyi. 😂

        • hemko@lemmy.dbzer0.comBanned
          link
          fedilink
          English
          arrow-up
          5
          ·
          edit-2
          1 year ago

          Removed by mod

          • Doctor xNo@r.nf
            link
            fedilink
            English
            arrow-up
            5
            ·
            1 year ago

            Let me rephrase my question:

            Why would I not want to open nano as root?

            No offense, but that sounds like more OCD behavior. 😅 I don’t need or want protection against myself, and I even loath the whole “that’s not how you’re supposed to do it”-mentality of linux (where when commands know very well what you want, instead of doing it, just tell you you forgot something). 😅

            • Swiggles
              link
              fedilink
              arrow-up
              4
              ·
              edit-2
              1 year ago

              deleted by creator

              • Doctor xNo@r.nf
                link
                fedilink
                English
                arrow-up
                4
                ·
                edit-2
                1 year ago

                But, in that example:

                If I’m the admin it doesn’t matter I use it.

                If I’m not it’s not my problem that I could get more privileges than allowed. I’d probably even use the possibility then. 😅

                So it poses a risk if you allow none-admin users to do that on your system, but I still don’t see why I must choose to not use nano as root myself. 😅

                Anyway, good practice to me is ease-of-use instead of with 7 protections against things that rarely happen.

                Like, I’m pretty sure you are better protected from burglars if you also lock all doors inside your house, but I’m definitely not doing that either. 😅

                Edit: Also, if you have users on your system, just chroot/vroot/lxc them, so they be free to ‘sudo nano’ too… 😅

                • Swiggles
                  link
                  fedilink
                  arrow-up
                  3
                  ·
                  edit-2
                  1 year ago

                  deleted by creator

            • scinde@discuss.tchncs.de
              link
              fedilink
              arrow-up
              2
              ·
              1 year ago

              It’s probably to protect against any potential security vulnerabilities in the text editor program itself, not to protect you from yourself.

              • Doctor xNo@r.nf
                link
                fedilink
                English
                arrow-up
                3
                ·
                1 year ago

                Wouldn’t that logic count for anything, including sudo itself?

                • scinde@discuss.tchncs.de
                  link
                  fedilink
                  arrow-up
                  2
                  ·
                  1 year ago

                  Sure, but sudo is specifically designed with security in mind as a security program, whereas text editors are not (although I am more likely to trust vim than vscode). Running a malicious program as the user and not as root can help mitigate the impact it could do, even though it will still be able to do a lot as a user.

              • Venia Silente@lemm.ee
                link
                fedilink
                English
                arrow-up
                2
                ·
                1 year ago

                You can say that just about anything.

                sudo grub sudo boot sudo root=/dev/disk/linux sudo kernel-6.1.image sudo init sudo elogind sudo xterm sudo bash sudo nano

                • scinde@discuss.tchncs.de
                  link
                  fedilink
                  arrow-up
                  3
                  ·
                  edit-2
                  1 year ago

                  Again, like I replied to the other comment, most of the programs you need root for are designed with security in mind and are inherently more secure and have less vulnerabilities than a non security focused program (that is not to say that it is impossible for a security program to have vulnerabilities -it certainly occurred before and keeps occurring- they just have a lot fewer). But even if you need root permissions for a non security focused program, you still shouldn’t let any program have it, the whole point is to minimize the surface of attack.

            • hemko@lemmy.dbzer0.comBanned
              link
              fedilink
              English
              arrow-up
              2
              ·
              edit-2
              1 year ago

              Removed by mod

      • Huschke@lemmy.world
        link
        fedilink
        arrow-up
        8
        ·
        1 year ago

        Alternatively you could use my favorite approach, Visual Studio Code. Just open the file with it, edit it and upon saving you will be promoted if the file needs admin rights to save.

        • LaSaucisseMasquee@jlai.lu
          link
          fedilink
          arrow-up
          7
          ·
          edit-2
          1 year ago

          Okay but how can I show how good I am with shortcuts to edit legacy software ?

          • Huschke@lemmy.world
            link
            fedilink
            arrow-up
            3
            ·
            1 year ago

            Vscode does have a lot of shortcuts, so you could always study them in detail and impress others that way. 😅

        • MalReynolds@slrpnk.net
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 year ago

          Yup, s/vsc/kwrite/ personally, it’s lighter, but why shouldn’t I have a pretty for my config editing needs…

        • Doctor xNo@r.nf
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          So for any supposedly malicious activity (infected) it wants to do, it just has to hold until you save and give admin access? 😅

          • Huschke@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            1 year ago

            Yes, but if you want to argue along those lines, you could also have an infected version of vim on your system just waiting to do malicious stuff until you give it sudo access.

            • Doctor xNo@r.nf
              link
              fedilink
              English
              arrow-up
              2
              ·
              1 year ago

              Indeed… Hence why I use ‘sudo nano’. 😜

        • hemko@lemmy.dbzer0.comBanned
          link
          fedilink
          English
          arrow-up
          2
          ·
          edit-2
          1 year ago

          Removed by mod

  • SigHunter@feddit.de
    link
    fedilink
    arrow-up
    25
    ·
    edit-2
    1 year ago

    until the moment you realize that somehow you are not on your native keyboard layout and where the hell is : and ! in this weird language??!

    • lseif@sopuli.xyz
      link
      fedilink
      arrow-up
      10
      ·
      edit-2
      1 year ago

      ESC Z Z

    • JetpackJackson@feddit.de
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      I have done this too many times now lol, you’d think I would have learned

  • MacN'Cheezus@lemmy.todayBanned
    link
    fedilink
    arrow-up
    22
    ·
    1 year ago

    “I use Arch Linux btw”

    *doesn’t know how to use vim

    Pottery

    • ILikeBoobies@lemmy.ca
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Hey!

  • marietta_man@yall.theatl.social
    link
    fedilink
    English
    arrow-up
    20
    ·
    edit-2
    1 year ago

    ESC Z Z

    Although I usually bang ESC a few times to
    make sure i’m back to command mode

    • lseif@sopuli.xyz
      link
      fedilink
      arrow-up
      13
      ·
      1 year ago

      you mean normal mode?

      • marietta_man@yall.theatl.social
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        Yes, I do.

    • digger@lemmy.ca
      link
      fedilink
      arrow-up
      8
      ·
      1 year ago

      Double Z’s will save and then exit. The command on until board will exit without saving changes.

      • Astaroth@lemm.ee
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        yeah to exit without saving you do ZQ instead of ZZ

    • topinambour_rex@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      Shouldn’t be Z Z esc ? Because, you know ZZ top.

  • _cnt0@sh.itjust.works
    link
    fedilink
    arrow-up
    17
    ·
    1 year ago

    Great, now all my changes are lost. Thank you very much!

    • Possibly linux@lemmy.zipOP
      link
      fedilink
      English
      arrow-up
      13
      ·
      1 year ago

      Your welcome!

    • greyhaven7@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      wq

      • _cnt0@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Thanks Sherlock.

  • rattking@lemmy.ml
    link
    fedilink
    arrow-up
    17
    ·
    edit-2
    1 year ago

    deleted by creator

    • al177@lemmy.sdf.org
      link
      fedilink
      arrow-up
      11
      ·
      1 year ago

      I think you meant :r!:() ::& ;:

  • TimeSquirrel@kbin.social
    link
    fedilink
    arrow-up
    17
    ·
    1 year ago

    Yanks power cord

    • BatrickPateman@feddit.de
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      deleted by creator

      • EuroNutellaMan@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Slumps up the yummy battery acid

  • key@lemmy.keychat.org
    link
    fedilink
    English
    arrow-up
    12
    ·
    1 year ago

    Ctrl-z

    ps

    kill -9 pid

    fg

    • WaterWaiver@aussie.zone
      link
      fedilink
      English
      arrow-up
      6
      ·
      edit-2
      1 year ago

      Alternative:

      Ctrl-z  
      kill -9 %1   # Shell keeps track of job pids for you, job 1 is %1, job 2 is %2, etc
      fg  # Not technically necessary, but it's fun to see the corpse
      
    • Possibly linux@lemmy.zipOP
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 year ago
      killall vim
      
      • DefederateLemmyMl@feddit.nl
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        1 year ago

        Reminds me of the time I brought down a whole AIX server with the killall command back in the 1990s.

        On AIX killall really means kill every single process.

  • Im_old@lemmy.world
    link
    fedilink
    arrow-up
    11
    ·
    1 year ago

    Ok ok, I know it’s a meme, but gentle reminder that :x is :w and :q combined (save and exit). I got taught that in high school (it was a dec unix with real vt120 terminals) and luckily for me I remembered that even if I didn’t touch vi for a few years afterwards.

    • Dasnap@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      Funnily enough, I knew of :x before :w.

  • katy ✨
    link
    fedilink
    arrow-up
    10
    ·
    1 year ago

    i think you mean ctrl s and ctrl x

    • Possibly linux@lemmy.zipOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      That didn’t work

    • selokichtli@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Still on it!? Are you, people, immortal? =)

      • katy ✨
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        nano is forever

  • 𝚐𝚕𝚘𝚠𝚒𝚎@h4x0r.host
    link
    fedilink
    arrow-up
    8
    ·
    1 year ago

    What is this sorcery?! I thought you had to reboot each time to exit.

  • kbotc@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 year ago

    META-C :wq!

    ESC is all the way over there and my hand is already on the space bar.

    • evranch@lemmy.ca
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Especially as a Dvorak user CTRL-C is effortless. Reaching for ESC makes zero sense!

    • XTornado@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Not if you swapped the caps lock with ESC.

    • PoolloverNathan@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      ALT-: wq!

      Saved you a keypress

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.
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.

  • 261 users / day
  • 2.02K users / week
  • 8.58K users / month
  • 17.2K users / 6 months
  • 609 local subscribers
  • 24.9K subscribers
  • 1.56K Posts
  • 76.5K Comments
  • Modlog
  • mods:
  • Kevin@lemmy.world
  • zephyr@lemmy.world
  • rtxn@lemmy.world
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org