LoopBoard
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@literature.cafe to Linux@programming.dev · 3 days ago

What are some of your most useful or favorite terminal commands?

message-square
message-square
45
link
fedilink
42
message-square

What are some of your most useful or favorite terminal commands?

cm0002@literature.cafe to Linux@programming.dev · 3 days ago
message-square
45
link
fedilink

OQB @marighost@piefed.social

  • TrumpetX@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 days ago

    I use awk instead of cut cause I can remember the syntax better.

    ps aux | grep zoom | grep -v grep | awk ‘{print $2}’ | xargs kill -9

    • stewie410@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      2 days ago

      You can get rid of those greps, btw:

      ps aux | awk '/zoom/ && $0 !~ /awk/ {print $2}'
      

      Or just use pgrep.

      • TrumpetX@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 days ago

        grep is everywhere, pgrep is not

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

        The greps were much more legible that this concoction 😅

        But I second the use of pgrep. 👌

        Better yet, just killall zoom.

    • Victor@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 days ago

      May I interest you in the command killall? 😁

      • TrumpetX@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 days ago

        The thing with killall is I can’t see what it’s going to do first. With the greps, I can look first, kill second.

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

          True, then I would personally run pgrep first, then killall. 😊

Linux@programming.dev

linux@programming.dev

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: !linux@programming.dev

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

  • !linux_memes@programming.dev
  • !linuxphones@lemmy.ca
  • Matrix instant messaging group chat

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

Visibility: Public
globe

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

  • 421 users / day
  • 2.1K users / week
  • 5.28K users / month
  • 6.05K users / 6 months
  • 1 local subscriber
  • 10.7K subscribers
  • 605 Posts
  • 4.45K Comments
  • Modlog
  • mods:
  • Ategon@programming.dev
  • adr1an@programming.dev
  • dwraf_of_ignorance@programming.dev
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org