Files
hackacad/docs/chapters/subcommands/cmd.rst

23 lines
663 B
ReStructuredText
Raw Normal View History

2018-11-24 20:07:20 -07:00
cmd
===
2025-02-23 11:50:12 -07:00
Execute commands inside targeted jail(s).
2018-11-24 20:07:20 -07:00
.. code-block:: shell
2020-07-13 19:27:23 -06:00
ishmael ~ # bastille cmd folsom ps -auxw
2018-11-24 20:07:20 -07:00
[folsom]:
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
root 71464 0.0 0.0 14536 2000 - IsJ 4:52PM 0:00.00 /usr/sbin/syslogd -ss
root 77447 0.0 0.0 16632 2140 - SsJ 4:52PM 0:00.00 /usr/sbin/cron -J 60 -s
root 80591 0.0 0.0 18784 2340 1 R+J 4:53PM 0:00.00 ps -auxw
2025-02-23 11:50:12 -07:00
.. code-block:: shell
ishmael ~ # bastille cmd help
Usage: bastille cmd [option(s)] TARGET command"
Options:
-a | --auto Auto mode. Start/stop jail(s) if required.
-x | --debug Enable debug mode.