nerdexam
LPI

305-300 · Question #5

Which of the following commands executes a command in a running LXC container?

The correct answer is A. lxc-accach. The command lxc-attach is used to execute a command in a running LXC container. It allows the user to start a process inside the container and attach to its standard input, output, and error streams. For example, the command lxc-attach -n mycontainer -- ls -lh /home will list…

303.4 Operations Security

Question

Which of the following commands executes a command in a running LXC container?

Options

  • Alxc-accach
  • Blxc-batch
  • Clxc-run
  • Dlxc-enter
  • Elxc-eval

How the community answered

(47 responses)
  • A
    77% (36)
  • B
    2% (1)
  • C
    2% (1)
  • D
    6% (3)
  • E
    13% (6)

Explanation

The command lxc-attach is used to execute a command in a running LXC container. It allows the user to start a process inside the container and attach to its standard input, output, and error streams. For example, the command lxc-attach -n mycontainer -- ls -lh /home will list all the files and directories in the /home directory of the container named mycontainer.

Topics

#LXC#container management#lxc-attach#container commands

Community Discussion

No community discussion yet for this question.

Full 305-300 Practice