lonestar-lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
0x2d@lemmy.ml to 196@lemmy.blahaj.zone · 1 year ago

rule

lemmy.ml

message-square
43
link
fedilink
280

rule

lemmy.ml

0x2d@lemmy.ml to 196@lemmy.blahaj.zone · 1 year ago
message-square
43
link
fedilink
alert-triangle
You must log in or register to comment.
  • ComradeSharkfucker@lemmy.ml
    link
    fedilink
    arrow-up
    43
    ·
    edit-2
    1 year ago

    Super easy

    Sudo rm -rf /*

    • Diplomjodler@feddit.de
      link
      fedilink
      arrow-up
      29
      ·
      1 year ago

      I thought that removes the French language pack?

      • Lampadaire_raclette@jlai.lu
        link
        fedilink
        arrow-up
        12
        ·
        1 year ago

        Oui

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

        yeah it probably does

      • letsgo@lemm.ee
        link
        fedilink
        arrow-up
        5
        ·
        1 year ago

        No, that’s rm -fr /*

    • verdare [he/him]@beehaw.org
      link
      fedilink
      arrow-up
      5
      ·
      1 year 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
    29
    ·
    1 year 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

    • unalivejoy@lemm.ee
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 year ago

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

      • HappyFrog@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

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

        • unalivejoy@lemm.ee
          link
          fedilink
          English
          arrow-up
          5
          ·
          1 year 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
          ·
          1 year ago

          You can type seppuku for that

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

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

      • I_like_cats@lemmy.one
        link
        fedilink
        arrow-up
        11
        ·
        1 year 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

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

        I use ps -aux | grep $EXECUTABLE

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

        htop or any process monitor will tell you.

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

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

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

        Pidof

    • AnUnusualRelic@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      1 year 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
    28
    ·
    1 year ago

    Uninterruptible sleep makes this harder than it looks

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

    Kid named process:

    • Viking_Hippie@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      1 year 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@infosec.pub
    link
    fedilink
    English
    arrow-up
    18
    ·
    1 year 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.

    • Smorty [she/her]@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      5
      ·
      1 year 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
    14
    ·
    edit-2
    1 year ago

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

    • FGoo@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      1 year ago

      For me its Ctrl+Alt+Esc that does it, Ctrl+Meta+Esc just highlights where my mouse cursor is.

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

        Could be a distro related difference ^^

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

      Does it work on Wayland?

      • lengau@midwest.social
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        Yes, in Wayland it’s built into kwin.

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

        It does work for me at least

  • dadarobot@lemmy.sdf.org
    link
    fedilink
    arrow-up
    7
    ·
    1 year ago

    pkill

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

      pkill

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

    deleted by creator

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

    pkill <pID>

    Or what I prefer:

    pkill -f <process/programm name>

  • LordKitsuna@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    1 year 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
      4
      ·
      1 year ago
      ps -e | grep app
      kill id
      
  • SuperDuper@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    !veryrealtechpics@lemmy.world

    • 0x2d@lemmy.mlOP
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      immediately subscribed lol

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

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

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

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

  • Toes♀@ani.social
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    sudo init 0

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

    btop

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.

  • 902 users / day
  • 3.15K users / week
  • 6.06K users / month
  • 18.7K users / 6 months
  • 2 local subscribers
  • 17.5K subscribers
  • 17.6K Posts
  • 210K 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
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org