runuser
Verified for current stable LTS
Runuser Command: Preserve Entire Environment Of Root
Use for preserve entire environment of root with Runuser. Exact CLI syntax to preserve entire environment of root using Runuser.
When to use this: Use for preserve entire environment of root with Runuser.
Command Syntax
sudo runuser <user> -p -c '<command>' sudo runuser <user> -p -c '<command>' Live Command Builder
Final Command
sudo runuser <user> -p -c '<command>' Command Breakdown
-p- Command Option
- Tool-specific option used by this command invocation.
-c- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to preserve entire environment of root using Runuser.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Runuser Command: Run Command As Different User
sudo runuser <user> -c '<command>' Runuser Command: Run Command As Different User And Group sudo runuser <user> -g <group> -c '<command>' Runuser Command: Specify Shell For Running Instead Of Default sudo runuser <user> -s </bin/sh> Runuser Command: Start Login Shell As Specific User sudo runuser <user> -l Jmeter Command: Run Test Plan Nongui Proxy jmeter -n -t <path/to/file.jmx> -H- <127.0.0.1> -P <8888>