Infosec.Pub
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
0x2d@lemmy.ml to 196@lemmy.blahaj.zone · 2 years ago

rule

lemmy.ml

message-square
40
link
fedilink
260

rule

lemmy.ml

0x2d@lemmy.ml to 196@lemmy.blahaj.zone · 2 years ago
message-square
40
link
fedilink
alert-triangle
You must log in or # to comment.
  • ComradeSharkfucker@lemmy.ml
    link
    fedilink
    arrow-up
    40
    ·
    2 years ago

    Super easy

    Sudo rm -rf /*

    • Diplomjodler@feddit.de
      link
      fedilink
      arrow-up
      27
      ·
      2 years ago

      I thought that removes the French language pack?

      • Lampadaire_raclette@jlai.lu
        link
        fedilink
        arrow-up
        12
        ·
        2 years ago

        Oui

      • Madeline@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        8
        ·
        2 years ago

        yeah it probably does

      • letsgo@lemm.eeBanned from community
        link
        fedilink
        arrow-up
        4
        ·
        2 years ago

        No, that’s rm -fr /*

    • verdare [he/him]@beehaw.org
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      Pedant time: That actually wouldn’t kill any process that’s already loaded in memory and running. Unless the process attempts to access something else from the filesystem and crashes.

  • I_like_cats@lemmy.one
    link
    fedilink
    arrow-up
    28
    ·
    2 years ago

    It’s easy. Just open up a terminal and type

    kill $PID
    

    (Replace the $PID with the process id of the process) if you don’t know the process id you can do

    killall process_name
    

    If these don’t work you can add a -9 to banish them and give them no chance to resist

    • SoonaPaana@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      Also please refresh my memory on how to find the process ID

      • I_like_cats@lemmy.one
        link
        fedilink
        arrow-up
        10
        ·
        2 years ago

        You can do

        ps aux | grep -i <part of process name>
        

        and the PID is in the second column of the output. However for this use case I recommend a process manager like htop or btop

      • Refurbished Refurbisher@lemmy.sdf.org
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        htop or any process monitor will tell you.

      • gayhitler420@lemm.ee
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        Pidof

      • Krzd@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        top for Ubuntu at least will show you the top processes, I think sorted by averaged CPU usage.

    • unalivejoy@lemm.ee
      link
      fedilink
      English
      arrow-up
      5
      ·
      2 years ago

      Similarly, $$ is the current PID, $PPID is the parent PID. (Bash)

      • HappyFrog@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        So ‘kill -9 $$’ is just suicide?

        • unalivejoy@lemm.ee
          link
          fedilink
          English
          arrow-up
          5
          ·
          2 years ago

          With suicide, you have a chance to get your affairs in order. kill -9 $$ is hiring an assassin to kill you and not tell you when it will happen. It happens suddenly without warning.

        • joulethief@compuverse.uk
          link
          fedilink
          arrow-up
          3
          ·
          2 years ago

          You can type seppuku for that

    • AnUnusualRelic@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      2 years ago

      You probably want to get on the habit of using pkill instead of killall in case you’re ever on a different system. You could have a surprise.

  • steventhedev@lemmy.world
    link
    fedilink
    arrow-up
    26
    ·
    2 years ago

    Uninterruptible sleep makes this harder than it looks

  • Dasnap@lemmy.world
    link
    fedilink
    arrow-up
    19
    ·
    2 years ago

    Kid named process:

    • Viking_Hippie@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      I remember that kid! She was friends with that boy named Sue, right? Both of them always hanging out with little Bobby tables?

  • NaibofTabr
    link
    fedilink
    English
    arrow-up
    18
    ·
    2 years ago

    xkill (assuming GUI and not headless/remote)

    xkill lets you click on any X application, at which point it will close the X server connection. In most cases the client application will self-terminate at the loss of the X connection. It’s wonderfully straightforward.

    • maria [she/her]@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      True, xkill is super easy to use. Who needs a task manager, if you can just click on the program you want to close.

  • Zyratoxx@lemm.ee
    link
    fedilink
    arrow-up
    13
    ·
    2 years ago

    KWin has this shortcut (Ctrl + Win + Esc) that turns your cursor into a skull that kills the windows you click on

    • navordar@lemmy.ml
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      Does it work on Wayland?

      • lengau@midwest.social
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        Yes, in Wayland it’s built into kwin.

      • Zyratoxx@lemm.ee
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        It does work for me at least

  • dadarobot@lemmy.sdf.org
    link
    fedilink
    arrow-up
    7
    ·
    2 years ago

    pkill

    • Caboose12000@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      pkill

  • NegativeLookBehind@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    11 months ago

    deleted by creator

  • Kühe sind toll@feddit.de
    link
    fedilink
    arrow-up
    4
    ·
    2 years ago

    pkill <pID>

    Or what I prefer:

    pkill -f <process/programm name>

  • LordKitsuna@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    2 years ago

    Just open htop, find the process you wish to kill. Press F9,9,enter.

    Done task killed

    • ProgrammingSocks@pawb.social
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago
      ps -e | grep app
      kill id
      
  • SuperDuper@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    2 years ago

    !veryrealtechpics@lemmy.world

    • 0x2d@lemmy.mlOP
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      immediately subscribed lol

  • SpunkyMcGoo@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    at least on GNOME you can just open the system monitor and use it like task manager

  • 737@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    btop

  • maria [she/her]@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    Uh, I’m not a cool terminal god, I just know how to use vim, so xkill is my way.

    • lengau@midwest.social
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      I use the terminal on a daily basis. My job involves writing software for terminals.

      Ctrl+Meta+Esc in KDE is still how I kill a misbehaving graphical app.

  • THCDenton@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    htop is how I usually send signals. TUIs are fun!

196@lemmy.blahaj.zone

196@lemmy.blahaj.zone

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: !196@lemmy.blahaj.zone

Be sure to follow the rule before you head out.


Rule: You must post before you leave.



Other rules

Behavior rules:

  • No bigotry (transphobia, racism, etc…)
  • No genocide denial
  • No support for authoritarian behaviour (incl. Tankies)
  • No namecalling
  • Accounts from lemmygrad.ml, threads.net, or hexbear.net are held to higher standards
  • Other things seen as cleary bad

Posting rules:

  • No AI generated content (DALL-E etc…)
  • No advertisements
  • No gore / violence
  • Mutual aid posts are not allowed

NSFW: NSFW content is permitted but it must be tagged and have content warnings. Anything that doesn’t adhere to this will be removed. Content warnings should be added like: [penis], [explicit description of sex]. Non-sexualized breasts of any gender are not considered inappropriate and therefore do not need to be blurred/tagged.

If you have any questions, feel free to contact us on our matrix channel or email.

Other 196’s:

  • !196@lemmy.world
  • !onehundredninetysix@lemmy.blahaj.zone
Visibility: Public
globe

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

  • 788 users / day
  • 1.37K users / week
  • 2.96K users / month
  • 8.07K users / 6 months
  • 90 local subscribers
  • 19.1K subscribers
  • 19.7K Posts
  • 208K Comments
  • Modlog
  • mods:
  • Moss@lemmy.blahaj.zone
  • greembow@lemmy.blahaj.zone
  • moss@lemmy.world
  • Queue@beehaw.org
  • funky-rodent [he/him]@lemmy.blahaj.zone
  • Peachy [they/she] @lemmy.blahaj.zone
  • threegnomes@lemmy.blahaj.zone
  • greembow@lemmy.world
  • remotelove@lemmy.ca
  • Roflmasterbigpimp@feddit.de
  • A_Very_Big_Fan@lemm.ee
  • qaz@lemmy.blahaj.zone
  • A_Very_Big_Fan@lemmy.world
  • qaz@lemmy.sdf.org
  • qaz@lemmy.world
  • qaz@sh.itjust.works
  • qaz@piefed.malplena.net
  • BE: 0.19.13
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org