LXC.FILE.CREATE(1)
π NAME π
lxc-file-create β the glow-up command that creates files and directories inside your instances, bestie. No cap.
Oh and hey, real quick: this whole page lives in the LXD - Command line client(1) manual, so likeβ¦ that's the family it belongs to. π«Ά
β¨ SYNOPSIS β¨
lxc file create [:]/ [] [flags]
π¦ DESCRIPTION π¦
Okay so listen. lxc file create literally creates files and directories in instances. That's the whole vibe. That's the job. Iconic, low-effort, does exactly what it says on the tin. π
π₯ OPTIONS π₯
-p,--create-dirs[=false]β creates any directories necessary along the way, so you don't gotta mkdir by hand like a peasant β¨-f,--force[=false]β forces the file or directory into existence. It's giving main character energy, ngl π--gid=-1β sets the file's gid on create. Default is-1, fr fr--mode=""β sets the file's perms on create. Default is empty, just sayin'--type="file"β the type to create:file,symlink, ordirectory. Defaults to"file"π--uid=-1β sets the file's uid on create. Default-1, iykyk
πΈ OPTIONS INHERITED FROM PARENT COMMANDS πΈ
These bad boys come from the parent command β not technically hers, but she's borrowing them and they slay:
--debug[=false]β shows all the debug messages, every last one π--force-local[=false]β force using the local unix socket-h,--help[=false]β prints help, the classic--project=""β override the source project. Default is empty-q,--quiet[=false]β don't show progress information, for when you simply cannot with the noise π--sub-commands[=false]β use this withhelpor--helpto view sub-commands-v,--verbose[=false]β shows all the information messages. She's chatty, we love her--version[=false]β prints the version number π
π EXAMPLE π
Okay bestie, examples are the whole point, so pay attention:
lxc file create foo/bar
To create a file /bar in the foo instance.
lxc file create --type=symlink foo/bar baz
To create a symlink /bar in instance foo whose target is baz.
See? First one: a plain file. Second one: a symlink pointing at baz. Ate. π
π SEE ALSO π
lxc-file(1)β go read the parent page, she raised this one π§
β HISTORY β
22-Aug-2026β Auto generated byspf13/cobra
Heads up bestie: this page was auto generated by spf13/cobra, so don't come for me about the formatting, I'm just the messenger π
And that's the whole page, periodt! π β¨ Big kiss from the LXD - Command line client(1) manual, dated Aug 2026, auto generated by spf13/cobra β mwah, take care of her, she's iconic ππ«Άπ
π¦ where this page comes from
- opensuse-leap 16.0: lxd 5.21.6-bp160.1.1 Β· AGPL-3.0-only AND Apache-2.0
- opensuse-leap 16.0: lxd 5.21.6-bp160.1.1 Β· AGPL-3.0-only AND Apache-2.0
- opensuse-leap 16.0: lxd 5.21.6-bp160.1.1 Β· AGPL-3.0-only AND Apache-2.0
- opensuse-leap 16.0: lxd 5.21.6-bp160.1.1 Β· AGPL-3.0-only AND Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms