Skip to content

Linux Administration Commands

Linux Administration Commands

Linux Requires SmartCom Revisited 1.0.0 or newer

by Nathan Kirk · 112 downloads · MIT licence · revision 2 · published 14 Aug 2026

This bundle can change or destroy device state

  • Reboots or reloads the device (2 steps) — Restarts the device. Any session on it drops, and anything not saved is lost.
  • Stops or disables a service (3 steps) — Stops something that is currently running on the host.
  • Changes credentials or access (2 steps) — Creates, changes or removes a login. Getting this wrong can lock everyone out of the device.
Show exactly which steps matched
  • Stop Service — Stops or disables a service (steps[0], sent text)

    sudo systemctl stop {{SERVICE}}
  • Reload Service — Reboots or reloads the device (steps[1], sent text)

    sudo systemctl reload {{SERVICE}}
  • Disable Service — Stops or disables a service (steps[0], sent text)

    sudo systemctl disable {{SERVICE}}
  • Disable and Stop Service — Stops or disables a service (steps[0], sent text)

    sudo systemctl disable --now {{SERVICE}}
  • Reload Systemd Units — Reboots or reloads the device (steps[0], sent text)

    sudo systemctl daemon-reload
  • List Users — Changes credentials or access (steps[0], sent text)

    getent passwd
  • Set User Password — Changes credentials or access (steps[0], sent text)

    sudo passwd {{USERNAME}}

Flagged automatically by matching command text. It is a prompt to read the script, not a verdict — plenty of legitimate buttons reboot things on purpose.

Download

4 sets, 116 buttons, 117 steps · 104.8 KB

File format version 1 · exported by Smartcom Revisited

Download .buttons.json
SHA-256 a7db515be552959c58f89b69af83edd190c2641cc01b15ac6396c5a7d3c4519b

You get the exact file the uploader submitted, byte for byte — that checksum is what sha256sum will print. Import it from the button panel in SmartCom Revisited.

About this set

Linux administration commands for managing services, logs, scheduled tasks, disks, filesystems, memory, software packages, users, groups, permissions, and login sessions.

Every button, in full

Exactly what gets sent

This is the complete script of the file below — nothing is summarised or hidden. Read it before you download it, the same way you would read a script someone emailed you.

Linux - Services, Logs & Scheduling

30 buttons

systemctl, journalctl, timers and cron jobs.

Service Status

Run: sudo systemctl status {{SERVICE}}

1 step · 1 input

  1. Send
    sudo systemctl status {{SERVICE}}

    Sends Enter afterwards.

Start Service

Run: sudo systemctl start {{SERVICE}}

1 step · 1 input

  1. Send
    sudo systemctl start {{SERVICE}}

    Sends Enter afterwards.

Stop Service

Run: sudo systemctl stop {{SERVICE}}

1 step · asks for confirmation before it runs · 1 input

  • Stops or disables a service
  1. Send
    sudo systemctl stop {{SERVICE}}

    Sends Enter afterwards.

Restart Service

Run: sudo systemctl restart {{SERVICE}}

1 step · 1 input

  1. Send
    sudo systemctl restart {{SERVICE}}

    Sends Enter afterwards.

Reload Service

Run: sudo systemctl reload {{SERVICE}}

2 steps · asks for confirmation before it runs · 1 input

  • Reboots or reloads the device
  1. Confirm

    Asks yes or no: “Reload the service so it re-reads its configuration. If that configuration is invalid the service can fail to come back — and some units restart rather than reload, which drops current connections. Continue?”

    Answering no stops the script here.

  2. Send
    sudo systemctl reload {{SERVICE}}

    Sends Enter afterwards.

Enable Service

Run: sudo systemctl enable {{SERVICE}}

1 step · 1 input

  1. Send
    sudo systemctl enable {{SERVICE}}

    Sends Enter afterwards.

Enable and Start Service

Run: sudo systemctl enable --now {{SERVICE}}

1 step · 1 input

  1. Send
    sudo systemctl enable --now {{SERVICE}}

    Sends Enter afterwards.

Disable Service

Run: sudo systemctl disable {{SERVICE}}

1 step · asks for confirmation before it runs · 1 input

  • Stops or disables a service
  1. Send
    sudo systemctl disable {{SERVICE}}

    Sends Enter afterwards.

Disable and Stop Service

Run: sudo systemctl disable --now {{SERVICE}}

1 step · asks for confirmation before it runs · 1 input

  • Stops or disables a service
  1. Send
    sudo systemctl disable --now {{SERVICE}}

    Sends Enter afterwards.

List Running Services

Run: systemctl list-units --type=service --state=running

1 step

  1. Send
    systemctl list-units --type=service --state=running

    Sends Enter afterwards.

List Failed Services

Run: systemctl --failed

1 step

  1. Send
    systemctl --failed

    Sends Enter afterwards.

Show Service Definition

Run: systemctl cat {{SERVICE}}

1 step · 1 input

  1. Send
    systemctl cat {{SERVICE}}

    Sends Enter afterwards.

Show Service Properties

Run: systemctl show {{SERVICE}}

1 step · 1 input

  1. Send
    systemctl show {{SERVICE}}

    Sends Enter afterwards.

Reload Systemd Units

Run: sudo systemctl daemon-reload

1 step

  • Reboots or reloads the device
  1. Send
    sudo systemctl daemon-reload

    Sends Enter afterwards.

Service Logs

Run: sudo journalctl -u {{SERVICE}}

1 step · 1 input

  1. Send
    sudo journalctl -u {{SERVICE}}

    Sends Enter afterwards.

Follow Service Logs

Run: sudo journalctl -u {{SERVICE}} -f

1 step · 1 input

  1. Send
    sudo journalctl -u {{SERVICE}} -f

    Sends Enter afterwards.

Recent Service Logs

Run: sudo journalctl -u {{SERVICE}} -n {{LINES}} --no-pager

1 step · 2 inputs

  1. Send
    sudo journalctl -u {{SERVICE}} -n {{LINES}} --no-pager

    Sends Enter afterwards.

Service Logs Since Time

Run: sudo journalctl -u {{SERVICE}} --since "{{SINCE}}"

1 step · 2 inputs

  1. Send
    sudo journalctl -u {{SERVICE}} --since "{{SINCE}}"

    Sends Enter afterwards.

Current Boot Logs

Run: sudo journalctl -b

1 step

  1. Send
    sudo journalctl -b

    Sends Enter afterwards.

Kernel Logs

Run: sudo journalctl -k

1 step

  1. Send
    sudo journalctl -k

    Sends Enter afterwards.

Journal Disk Usage

Run: journalctl --disk-usage

1 step

  1. Send
    journalctl --disk-usage

    Sends Enter afterwards.

Vacuum Journal by Time

Run: sudo journalctl --vacuum-time={{DURATION}}

1 step · asks for confirmation before it runs · 1 input

  1. Send
    sudo journalctl --vacuum-time={{DURATION}}

    Sends Enter afterwards.

Vacuum Journal by Size

Run: sudo journalctl --vacuum-size={{SIZE}}

1 step · asks for confirmation before it runs · 1 input

  1. Send
    sudo journalctl --vacuum-size={{SIZE}}

    Sends Enter afterwards.

Edit User Crontab

Run: crontab -e

1 step

  1. Send
    crontab -e

    Sends Enter afterwards.

List User Crontab

Run: crontab -l

1 step

  1. Send
    crontab -l

    Sends Enter afterwards.

Edit Another User Crontab

Run: sudo crontab -u {{USERNAME}} -e

1 step · 1 input

  1. Send
    sudo crontab -u {{USERNAME}} -e

    Sends Enter afterwards.

List Timers

Run: systemctl list-timers --all

1 step

  1. Send
    systemctl list-timers --all

    Sends Enter afterwards.

Run Command Later

Run: echo "{{COMMAND}}" | at {{TIME}}

1 step · 2 inputs

  1. Send
    echo "{{COMMAND}}" | at {{TIME}}

    Sends Enter afterwards.

List At Jobs

Run: atq

1 step

  1. Send
    atq

    Sends Enter afterwards.

Remove At Job

Run: atrm {{JOB_ID}}

1 step · asks for confirmation before it runs · 1 input

  1. Send
    atrm {{JOB_ID}}

    Sends Enter afterwards.

Linux - Disks, Filesystems & Memory

28 buttons

Disk usage, mounts, LVM, swap and memory pressure.

Show Filesystem Usage

Run: df -hT

1 step

  1. Send
    df -hT

    Sends Enter afterwards.

Show Inodes

Run: df -ih

1 step

  1. Send
    df -ih

    Sends Enter afterwards.

List Block Devices

Run: lsblk -f

1 step

  1. Send
    lsblk -f

    Sends Enter afterwards.

Show Block UUIDs

Run: blkid

1 step

  1. Send
    blkid

    Sends Enter afterwards.

Show Mounts

Run: findmnt

1 step

  1. Send
    findmnt

    Sends Enter afterwards.

Show Mount for Path

Run: findmnt -T {{PATH}}

1 step · 1 input

  1. Send
    findmnt -T {{PATH}}

    Sends Enter afterwards.

Mount Filesystem

Run: sudo mount {{DEVICE}} {{MOUNT_POINT}}

1 step · 2 inputs

  1. Send
    sudo mount {{DEVICE}} {{MOUNT_POINT}}

    Sends Enter afterwards.

Unmount Filesystem

Run: sudo umount {{MOUNT_POINT}}

1 step · asks for confirmation before it runs · 1 input

  1. Send
    sudo umount {{MOUNT_POINT}}

    Sends Enter afterwards.

Force Lazy Unmount

Run: sudo umount -l {{MOUNT_POINT}}

1 step · asks for confirmation before it runs · 1 input

  1. Send
    sudo umount -l {{MOUNT_POINT}}

    Sends Enter afterwards.

Mount All fstab Entries

Run: sudo mount -a

1 step

  1. Send
    sudo mount -a

    Sends Enter afterwards.

Validate fstab

Run: findmnt --verify

1 step

  1. Send
    findmnt --verify

    Sends Enter afterwards.

Show Disk Partitions

Run: sudo fdisk -l

1 step

  1. Send
    sudo fdisk -l

    Sends Enter afterwards.

Show Disk SMART Data

Run: sudo smartctl -a {{DEVICE}}

1 step · 1 input

  1. Send
    sudo smartctl -a {{DEVICE}}

    Sends Enter afterwards.

Run Short SMART Test

Run: sudo smartctl -t short {{DEVICE}}

1 step · 1 input

  1. Send
    sudo smartctl -t short {{DEVICE}}

    Sends Enter afterwards.

Show LVM Physical Volumes

Run: sudo pvs

1 step

  1. Send
    sudo pvs

    Sends Enter afterwards.

Show LVM Volume Groups

Run: sudo vgs

1 step

  1. Send
    sudo vgs

    Sends Enter afterwards.

Show LVM Logical Volumes

Run: sudo lvs -a -o +devices

1 step

  1. Send
    sudo lvs -a -o +devices

    Sends Enter afterwards.

Show Memory

Run: free -h

1 step

  1. Send
    free -h

    Sends Enter afterwards.

Show Memory Details

Run: cat /proc/meminfo

1 step

  1. Send
    cat /proc/meminfo

    Sends Enter afterwards.

Show Swap

Run: swapon --show

1 step

  1. Send
    swapon --show

    Sends Enter afterwards.

Enable Swap

Run: sudo swapon {{DEVICE}}

1 step · 1 input

  1. Send
    sudo swapon {{DEVICE}}

    Sends Enter afterwards.

Disable Swap

Run: sudo swapoff {{DEVICE}}

1 step · asks for confirmation before it runs · 1 input

  1. Send
    sudo swapoff {{DEVICE}}

    Sends Enter afterwards.

Show Largest Directories

Run: sudo du -xhd1 {{PATH}} | sort -h

1 step · 1 input

  1. Send
    sudo du -xhd1 {{PATH}} | sort -h

    Sends Enter afterwards.

Find Large Files

Run: find {{PATH}} -xdev -type f -size +{{SIZE}} -printf "%s %p " | sort -nr | head -n {{LIMIT}}

1 step · 3 inputs

  1. Send
    find {{PATH}} -xdev -type f -size +{{SIZE}} -printf "%s %p
    " | sort -nr | head -n {{LIMIT}}

    Sends Enter afterwards.

Filesystem Check Read Only

Run: sudo fsck -n {{DEVICE}}

1 step · 1 input

  1. Send
    sudo fsck -n {{DEVICE}}

    Sends Enter afterwards.

Show IO Statistics

Run: iostat -xz {{SECONDS}} {{COUNT}}

1 step · 2 inputs

  1. Send
    iostat -xz {{SECONDS}} {{COUNT}}

    Sends Enter afterwards.

Show Per-Process IO

Run: sudo iotop

1 step

  1. Send
    sudo iotop

    Sends Enter afterwards.

Show Disk Usage Live

Run: watch -n {{SECONDS}} df -hT

1 step · 1 input

  1. Send
    watch -n {{SECONDS}} df -hT

    Sends Enter afterwards.

Linux - Packages & Software

30 buttons

apt, dnf, yum, zypper, snap and repository state.

APT Update

Run: sudo apt update

1 step

  1. Send
    sudo apt update

    Sends Enter afterwards.

APT Upgrade

Run: sudo apt upgrade

1 step

  1. Send
    sudo apt upgrade

    Sends Enter afterwards.

APT Full Upgrade

Run: sudo apt full-upgrade

1 step

  1. Send
    sudo apt full-upgrade

    Sends Enter afterwards.

APT Install Package

Run: sudo apt install {{PACKAGE}}

1 step · 1 input

  1. Send
    sudo apt install {{PACKAGE}}

    Sends Enter afterwards.

APT Remove Package

Run: sudo apt remove {{PACKAGE}}

1 step · asks for confirmation before it runs · 1 input

  1. Send
    sudo apt remove {{PACKAGE}}

    Sends Enter afterwards.

APT Purge Package

Run: sudo apt purge {{PACKAGE}}

1 step · asks for confirmation before it runs · 1 input

  1. Send
    sudo apt purge {{PACKAGE}}

    Sends Enter afterwards.

APT Autoremove

Run: sudo apt autoremove

1 step · asks for confirmation before it runs

  1. Send
    sudo apt autoremove

    Sends Enter afterwards.

APT Search

Run: apt search {{PACKAGE}}

1 step · 1 input

  1. Send
    apt search {{PACKAGE}}

    Sends Enter afterwards.

APT Package Info

Run: apt show {{PACKAGE}}

1 step · 1 input

  1. Send
    apt show {{PACKAGE}}

    Sends Enter afterwards.

List APT Upgradable

Run: apt list --upgradable

1 step

  1. Send
    apt list --upgradable

    Sends Enter afterwards.

DNF Check Updates

Run: sudo dnf check-update

1 step

  1. Send
    sudo dnf check-update

    Sends Enter afterwards.

DNF Upgrade

Run: sudo dnf upgrade

1 step

  1. Send
    sudo dnf upgrade

    Sends Enter afterwards.

DNF Install Package

Run: sudo dnf install {{PACKAGE}}

1 step · 1 input

  1. Send
    sudo dnf install {{PACKAGE}}

    Sends Enter afterwards.

DNF Remove Package

Run: sudo dnf remove {{PACKAGE}}

1 step · asks for confirmation before it runs · 1 input

  1. Send
    sudo dnf remove {{PACKAGE}}

    Sends Enter afterwards.

DNF Search

Run: dnf search {{PACKAGE}}

1 step · 1 input

  1. Send
    dnf search {{PACKAGE}}

    Sends Enter afterwards.

DNF Package Info

Run: dnf info {{PACKAGE}}

1 step · 1 input

  1. Send
    dnf info {{PACKAGE}}

    Sends Enter afterwards.

DNF List Installed

Run: dnf list installed

1 step

  1. Send
    dnf list installed

    Sends Enter afterwards.

DNF History

Run: sudo dnf history

1 step

  1. Send
    sudo dnf history

    Sends Enter afterwards.

DNF Undo Transaction

Run: sudo dnf history undo {{TRANSACTION_ID}}

1 step · asks for confirmation before it runs · 1 input

  1. Send
    sudo dnf history undo {{TRANSACTION_ID}}

    Sends Enter afterwards.

YUM Install Package

Run: sudo yum install {{PACKAGE}}

1 step · 1 input

  1. Send
    sudo yum install {{PACKAGE}}

    Sends Enter afterwards.

YUM Update

Run: sudo yum update

1 step

  1. Send
    sudo yum update

    Sends Enter afterwards.

RPM Query Package

Run: rpm -qi {{PACKAGE}}

1 step · 1 input

  1. Send
    rpm -qi {{PACKAGE}}

    Sends Enter afterwards.

RPM Find Owning Package

Run: rpm -qf {{FILE}}

1 step · 1 input

  1. Send
    rpm -qf {{FILE}}

    Sends Enter afterwards.

DPKG List Package Files

Run: dpkg -L {{PACKAGE}}

1 step · 1 input

  1. Send
    dpkg -L {{PACKAGE}}

    Sends Enter afterwards.

DPKG Find Owning Package

Run: dpkg -S {{FILE}}

1 step · 1 input

  1. Send
    dpkg -S {{FILE}}

    Sends Enter afterwards.

List Installed Packages Debian

Run: dpkg -l

1 step

  1. Send
    dpkg -l

    Sends Enter afterwards.

List Installed Packages RPM

Run: rpm -qa | sort

1 step

  1. Send
    rpm -qa | sort

    Sends Enter afterwards.

Snap List

Run: snap list

1 step

  1. Send
    snap list

    Sends Enter afterwards.

Snap Install

Run: sudo snap install {{PACKAGE}}

1 step · 1 input

  1. Send
    sudo snap install {{PACKAGE}}

    Sends Enter afterwards.

Snap Remove

Run: sudo snap remove {{PACKAGE}}

1 step · asks for confirmation before it runs · 1 input

  1. Send
    sudo snap remove {{PACKAGE}}

    Sends Enter afterwards.

Linux - Users, Groups & Sessions

28 buttons

Accounts, groups, passwords, sudo and login sessions.

Show Current User

Run: whoami

1 step

  1. Send
    whoami

    Sends Enter afterwards.

Show User Identity

Run: id

1 step

  1. Send
    id

    Sends Enter afterwards.

Show Another User Identity

Run: id {{USERNAME}}

1 step · 1 input

  1. Send
    id {{USERNAME}}

    Sends Enter afterwards.

List Logged In Users

Run: who

1 step

  1. Send
    who

    Sends Enter afterwards.

Show Login Activity

Run: w

1 step

  1. Send
    w

    Sends Enter afterwards.

Show Last Logins

Run: last -n {{LIMIT}}

1 step · 1 input

  1. Send
    last -n {{LIMIT}}

    Sends Enter afterwards.

Show Last Login per User

Run: lastlog

1 step

  1. Send
    lastlog

    Sends Enter afterwards.

List Users

Run: getent passwd

1 step

  • Changes credentials or access
  1. Send
    getent passwd

    Sends Enter afterwards.

List Groups

Run: getent group

1 step

  1. Send
    getent group

    Sends Enter afterwards.

Add User

Run: sudo useradd -m -s /bin/bash {{USERNAME}}

1 step · 1 input

  1. Send
    sudo useradd -m -s /bin/bash {{USERNAME}}

    Sends Enter afterwards.

Set User Password

Run: sudo passwd {{USERNAME}}

1 step · 1 input

  • Changes credentials or access
  1. Send
    sudo passwd {{USERNAME}}

    Sends Enter afterwards.

Delete User

Run: sudo userdel {{USERNAME}}

1 step · asks for confirmation before it runs · 1 input

  1. Send
    sudo userdel {{USERNAME}}

    Sends Enter afterwards.

Delete User and Home

Run: sudo userdel -r {{USERNAME}}

1 step · asks for confirmation before it runs · 1 input

  1. Send
    sudo userdel -r {{USERNAME}}

    Sends Enter afterwards.

Add Group

Run: sudo groupadd {{GROUP}}

1 step · 1 input

  1. Send
    sudo groupadd {{GROUP}}

    Sends Enter afterwards.

Delete Group

Run: sudo groupdel {{GROUP}}

1 step · asks for confirmation before it runs · 1 input

  1. Send
    sudo groupdel {{GROUP}}

    Sends Enter afterwards.

Add User to Group

Run: sudo usermod -aG {{GROUP}} {{USERNAME}}

1 step · 2 inputs

  1. Send
    sudo usermod -aG {{GROUP}} {{USERNAME}}

    Sends Enter afterwards.

Remove User From Group

Run: sudo gpasswd -d {{USERNAME}} {{GROUP}}

1 step · asks for confirmation before it runs · 2 inputs

  1. Send
    sudo gpasswd -d {{USERNAME}} {{GROUP}}

    Sends Enter afterwards.

Lock User Account

Run: sudo usermod -L {{USERNAME}}

1 step · asks for confirmation before it runs · 1 input

  1. Send
    sudo usermod -L {{USERNAME}}

    Sends Enter afterwards.

Unlock User Account

Run: sudo usermod -U {{USERNAME}}

1 step · 1 input

  1. Send
    sudo usermod -U {{USERNAME}}

    Sends Enter afterwards.

Expire User Account

Run: sudo chage -E {{DATE}} {{USERNAME}}

1 step · asks for confirmation before it runs · 2 inputs

  1. Send
    sudo chage -E {{DATE}} {{USERNAME}}

    Sends Enter afterwards.

Show Password Aging

Run: sudo chage -l {{USERNAME}}

1 step · 1 input

  1. Send
    sudo chage -l {{USERNAME}}

    Sends Enter afterwards.

Switch User

Run: sudo -iu {{USERNAME}}

1 step · 1 input

  1. Send
    sudo -iu {{USERNAME}}

    Sends Enter afterwards.

Run Command as User

Run: sudo -u {{USERNAME}} {{COMMAND}}

1 step · 2 inputs

  1. Send
    sudo -u {{USERNAME}} {{COMMAND}}

    Sends Enter afterwards.

Show Sudo Permissions

Run: sudo -l

1 step

  1. Send
    sudo -l

    Sends Enter afterwards.

Safely Edit Sudoers

Run: sudo visudo

1 step

  1. Send
    sudo visudo

    Sends Enter afterwards.

Show SSH Authorized Keys

Run: cat {{HOME_PATH}}/.ssh/authorized_keys

1 step · 1 input

  1. Send
    cat {{HOME_PATH}}/.ssh/authorized_keys

    Sends Enter afterwards.

Generate SSH Key

Run: ssh-keygen -t ed25519 -C "{{COMMENT}}"

1 step · 1 input

  1. Send
    ssh-keygen -t ed25519 -C "{{COMMENT}}"

    Sends Enter afterwards.

Copy SSH Key

Run: ssh-copy-id {{USERNAME}}@{{HOST}}

1 step · 2 inputs

  1. Send
    ssh-copy-id {{USERNAME}}@{{HOST}}

    Sends Enter afterwards.

Version history

  • Revision 2 current

    Added Inputs and stops,

    14 Aug 2026 · 104.8 KB · needs 1.0.0+ · a7db515be552959c…

  • Revision 1

    First published version.

    13 Aug 2026 · 103.8 KB · needs 1.0.0+ · 89c76b3a3b4cd07d…

Something wrong with this set?

Sign in to report it, or email abuse@smartcomrevisited.com.