Check systemd service status

Service status, recent log lines, and active timers

systemctl status <service> --no-pager -l

tool
linux133 commands
tags
linux

More linux commands

  • tcpdump -i eth0 -nn host <ip> and port 80 -w /tmp/capture.pcap

    Capture specific traffic to a pcap file

  • df -i | sort -k5 -rn

    Show inode usage per filesystem; can cause 'no space' without disk full

  • lsof -p <pid>

    Show all files, sockets, and connections opened by a process

  • watch -n 2 'kubectl get pods -n <ns>'

    Re-run a command every 2 seconds with diff highlighting

  • nohup ./script.sh > /tmp/out.log 2>&1 &

    Run a script immune to SIGHUP; redirect output to file

all 133 linux commands