mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-09 03:57:42 +00:00
Update cheatsheets
This commit is contained in:
21
tldr/linux/lxc-console
Normal file
21
tldr/linux/lxc-console
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# lxc-console
|
||||
|
||||
> Attach to a container.
|
||||
> More information: <https://linuxcontainers.org/lxc/manpages//man1/lxc-console.1.html>.
|
||||
|
||||
- Start a console in a container:
|
||||
|
||||
`agetty {{[-L|--local-line]}} {{38400}} tty1`
|
||||
|
||||
- Connect to an lxc console:
|
||||
|
||||
`sudo lxc-console {{container_name}}`
|
||||
|
||||
- Exit `lxc-console`:
|
||||
|
||||
`<Ctrl a><q>`
|
||||
Reference in New Issue
Block a user