Skip to content

xops sudo

Command usage and available options are listed below. Check --help for options supported by your installed version.

text
Execute commands locally with sudo. Supports automatic password retrieval from config.
Examples:
  xops sudo "ss -tlpn"
  xops sudo -s
  xops sudo "firewall-cmd --list-all" -p mypassword

Usage:
  xops sudo [command] [flags]

Flags:
  -h, --help            help for sudo
  -p, --passwd string   Local sudo password
  -s, --shell           Enter root shell (similar to sudo -s)

Global Flags:
      --color string       ANSI color output (auto=detect pipe/redirect, never=disable, always=force enable)
      --debug              Enable debug mode (equivalent to --log-level=debug)
      --lang string        Interface language (zh/en)
      --log-level string   Set internal diagnostic log level (debug, info, warn, error)

MIT License