Sky-Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
petsoi@discuss.tchncs.de to Linux@lemmy.ml · 1 year ago

Systemctl Command Examples in Linux

itsfoss.com

external-link
message-square
23
fedilink
139
external-link

Systemctl Command Examples in Linux

itsfoss.com

petsoi@discuss.tchncs.de to Linux@lemmy.ml · 1 year ago
message-square
23
fedilink
  • somenonewho@feddit.de
    link
    fedilink
    arrow-up
    56
    ·
    1 year ago

    Two additional commands I regularly use as a Sysadmin are

    systemctl status without any unit to list show the general system status (lists units that are running, units that are starting and failed units right at the top) And then systemctl list-units --failed To show me just the failed units and did deeper what the problem is.

    On a properly set up system I should quickly be able to ascertain if everything is “up and running” just by systemds status

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

      You can also use systemctl status $pid to find out what service a process is from.

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

        This and systemctl cat $unit are my favorites.

      • somenonewho@feddit.de
        link
        fedilink
        arrow-up
        10
        ·
        1 year ago

        You can … WHAT!?

        Wow I did not know that. Incredibly helpful

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

        Oooh. Thank you, I didn’t know that.

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

      You can skip list-units and just do systemctl --failed

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

      You can even drop the list-units and just use systemctl --failed

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

      Didn’t know that. Thanks!

Linux@lemmy.ml

linux@lemmy.ml

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@lemmy.ml

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

  • !opensource@lemmy.ml
  • !libre_culture@lemmy.ml
  • !technology@lemmy.ml
  • !libre_hardware@lemmy.ml

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Visibility: Public
globe

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

  • 455 users / day
  • 165 users / week
  • 4.14K users / month
  • 16.3K users / 6 months
  • 0 local subscribers
  • 53.2K subscribers
  • 7.28K Posts
  • 192K Comments
  • Modlog
  • mods:
  • nooter692@lemmy.ml
  • AgreeableLandscape@lemmy.ml
  • MarcellusDrum@lemmy.ml
  • Arthur Besse@lemmy.ml
  • Cyclohexane@lemmy.ml
  • d3Xt3r@lemmy.nz
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org