Linux Command Generator

Pick what you need to do, fill in the details, and copy a command that works on Ubuntu, Debian, AlmaLinux and Rocky Linux.

  • Free
  • No Sign-Up
  • Runs in Your Browser
Pick a task to get its command.

How to Use

How to use the Linux Command Generator

  1. 01

    Pick a task

    Disk space, networking, services, logs, processes or system information.

  2. 02

    Fill in the details

    A path, a port, a service name: only what the command needs.

  3. 03

    Copy and run

    Each command comes with a short note on what it does.

VPS & Linux

About the Linux Command Generator

The first commands to run on a slow or full server

Out of space: df -h shows which filesystem is full, then du on that filesystem finds the directory. Old logs, Docker images and package caches are the usual culprits. If df shows space free but writes still fail, check inodes with df -i: millions of tiny files (sessions, mail queues) can exhaust them.

Slow or overloaded: uptime shows the load average, free -h shows memory and swap, and sorting processes by CPU or memory shows what is responsible. Unexpected outbound connections or a process you do not recognise using all the CPU often mean the server has been compromised.

What it can't tell you

  • Commands assume systemd and a recent distribution. Paths such as /var/log/auth.log differ on RHEL-based systems (/var/log/secure).

Frequently asked questions

How do I find what is using disk space on Linux?
du -xh --max-depth=1 / | sort -rh | head -20 lists the biggest directories on the root filesystem. Repeat inside the largest one.
How do I see which ports are open?
ss -lntup lists every listening TCP and UDP port with the program behind it.
How do I read a service's logs?
journalctl -u nginx --since "1 hour ago" shows the last hour of a systemd service's logs. Add -f to follow new lines.

Run VMs for other people?

Frabs stops spam, scans and floods leaving your customers' VMs, before the abuse report lands.